Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-workhorse
Commits
a9058bcd
Commit
a9058bcd
authored
Jan 14, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix URLFlag
Conflicts: main.go
parent
8de2206c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
main.go
main.go
+1
-1
urlflag.go
urlflag.go
+7
-5
No files found.
main.go
View file @
a9058bcd
...
@@ -82,7 +82,7 @@ func main() {
...
@@ -82,7 +82,7 @@ func main() {
}
}
up
:=
upstream
.
NewUpstream
(
up
:=
upstream
.
NewUpstream
(
authBackend
,
*
authBackend
,
*
authSocket
,
*
authSocket
,
Version
,
Version
,
*
documentRoot
,
*
documentRoot
,
...
...
urlflag.go
View file @
a9058bcd
...
@@ -5,7 +5,9 @@ import (
...
@@ -5,7 +5,9 @@ import (
"net/url"
"net/url"
)
)
type
urlFlag
struct
{
*
url
.
URL
}
type
urlFlag
struct
{
*
url
.
URL
}
func
(
u
*
urlFlag
)
Set
(
s
string
)
error
{
func
(
u
*
urlFlag
)
Set
(
s
string
)
error
{
myURL
,
err
:=
url
.
Parse
(
s
)
myURL
,
err
:=
url
.
Parse
(
s
)
...
@@ -16,8 +18,8 @@ func (u *urlFlag) Set(s string) error {
...
@@ -16,8 +18,8 @@ func (u *urlFlag) Set(s string) error {
return
nil
return
nil
}
}
func
URLFlag
(
name
string
,
value
*
url
.
URL
,
usage
string
)
*
url
.
URL
{
func
URLFlag
(
name
string
,
value
*
url
.
URL
,
usage
string
)
*
*
url
.
URL
{
f
:=
urlFlag
{
value
}
f
:=
&
urlFlag
{
value
}
flag
.
CommandLine
.
Var
(
&
f
,
name
,
usage
)
flag
.
CommandLine
.
Var
(
f
,
name
,
usage
)
return
f
.
URL
return
&
f
.
URL
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment