mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-23 09:31:02 +01: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 {
|
||||
return "http", port, true
|
||||
}
|
||||
@@ -68,7 +68,7 @@ func getSchemePortByImageName(imageName string, port int) (scheme string, portNu
|
||||
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 {
|
||||
return "http", port, true
|
||||
}
|
||||
|
||||
@@ -276,7 +276,7 @@ func (r *Route) Finalize() {
|
||||
lp, pp := r.Port.Listening, r.Port.Proxy
|
||||
|
||||
if isDocker {
|
||||
scheme, port, ok := getSchemePortByImageName(cont.Image.Name, pp)
|
||||
scheme, port, ok := getSchemePortByImageName(cont.Image.Name)
|
||||
if ok {
|
||||
if r.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 == "" {
|
||||
r.Scheme = types.Scheme(scheme)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user