mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 09:18:31 +02:00
remove unused params
This commit is contained in:
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user