mirror of
https://github.com/yusing/godoxy.git
synced 2025-06-09 13:02:33 +02:00
remove unused params
This commit is contained in:
parent
6220d02f32
commit
9f0c29c009
2 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ var (
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
func getSchemePortByImageName(imageName string, port int) (scheme string, portNum int, ok bool) {
|
func getSchemePortByImageName(imageName string) (scheme string, port int, ok bool) {
|
||||||
if port, ok := ImageNamePortMapHTTP[imageName]; ok {
|
if port, ok := ImageNamePortMapHTTP[imageName]; ok {
|
||||||
return "http", port, true
|
return "http", port, true
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ func getSchemePortByImageName(imageName string, port int) (scheme string, portNu
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func getSchemePortByAlias(alias string, port int) (scheme string, portNum int, ok bool) {
|
func getSchemePortByAlias(alias string) (scheme string, port int, ok bool) {
|
||||||
if port, ok := AliasPortMapHTTP[alias]; ok {
|
if port, ok := AliasPortMapHTTP[alias]; ok {
|
||||||
return "http", port, true
|
return "http", port, true
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,7 +276,7 @@ func (r *Route) Finalize() {
|
||||||
lp, pp := r.Port.Listening, r.Port.Proxy
|
lp, pp := r.Port.Listening, r.Port.Proxy
|
||||||
|
|
||||||
if isDocker {
|
if isDocker {
|
||||||
scheme, port, ok := getSchemePortByImageName(cont.Image.Name, pp)
|
scheme, port, ok := getSchemePortByImageName(cont.Image.Name)
|
||||||
if ok {
|
if ok {
|
||||||
if r.Scheme == "" {
|
if r.Scheme == "" {
|
||||||
r.Scheme = types.Scheme(scheme)
|
r.Scheme = types.Scheme(scheme)
|
||||||
|
@ -287,7 +287,7 @@ func (r *Route) Finalize() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if scheme, port, ok := getSchemePortByAlias(r.Alias, pp); ok {
|
if scheme, port, ok := getSchemePortByAlias(r.Alias); ok {
|
||||||
if r.Scheme == "" {
|
if r.Scheme == "" {
|
||||||
r.Scheme = types.Scheme(scheme)
|
r.Scheme = types.Scheme(scheme)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue