mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 15:31:24 +02:00
refactor and remove unused code
This commit is contained in:
@@ -280,14 +280,15 @@ func (r *Route) Finalize() {
|
||||
}
|
||||
|
||||
if pp == 0 {
|
||||
if isDocker {
|
||||
switch {
|
||||
case isDocker:
|
||||
pp = lowestPort(cont.PrivatePortMapping)
|
||||
if pp == 0 {
|
||||
pp = lowestPort(cont.PublicPortMapping)
|
||||
}
|
||||
} else if r.Scheme == "https" {
|
||||
case r.Scheme == "https":
|
||||
pp = 443
|
||||
} else {
|
||||
default:
|
||||
pp = 80
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user