Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Commit

Permalink
Pass client IP with X-Forwarded-For header
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lucas <xavier.lucas@corp.ovh.com>
  • Loading branch information
Xavier Lucas committed Dec 22, 2016
1 parent ffc47e3 commit 5a85df1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/mount.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func setFlags() {
flags.Uint64Var(&svfs.SegmentSize, "os-segment-size", 256, "Swift segment size in MiB")
flags.StringVar(&svfs.StoragePolicy, "os-storage-policy", "", "Only show containers using this storage policy")
flags.StringVar(&swift.DefaultUserAgent, "user-agent", "svfs/"+svfs.Version, "Default User-Agent")
flags.StringVar(&swift.ClientIP, "client-ip", "", "Client IP")

//HubiC options
flags.StringVar(&svfs.HubicAuthorization, "hubic-authorization", "", "hubiC authorization code")
Expand Down
1 change: 1 addition & 0 deletions scripts/mount.svfs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ OPTIONS = {
'hubic_auth' => '--hubic-authorization',
'hubic_times' => '--hubic-times',
'hubic_token' => '--hubic-refresh-token',
'ip' => '--client-ip',
'mode' => '--default-mode',
'password' => '--os-password',
'profile_addr' => '--profile-bind',
Expand Down
6 changes: 6 additions & 0 deletions vendor/github.com/xlucas/swift/swift.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
"importpath": "github.com/xlucas/swift",
"repository": "https://github.com/xlucas/swift",
"vcs": "git",
"revision": "d5f88e6977ef38b3308487b13f99860393d76b57",
"revision": "b9756902dc094aed5b4ded9cfc321378436a87f1",
"branch": "master"
},
{
Expand Down

0 comments on commit 5a85df1

Please sign in to comment.