mirror of
https://github.com/umputun/reproxy.git
synced 2024-11-24 08:12:31 +02:00
fix default ssk port selection
This commit is contained in:
parent
4c051ca37f
commit
5c1ab356cc
@ -346,9 +346,9 @@ func listenAddress(addr, sslType string) string {
|
||||
|
||||
// https, set default to 8443 in docker, 443 without
|
||||
if v, ok := os.LookupEnv("REPROXY_IN_DOCKER"); ok && (v == "1" || v == "true") {
|
||||
return "0.0.0.0:443"
|
||||
return "0.0.0.0:8443"
|
||||
}
|
||||
return "127.0.0.1:8443"
|
||||
return "127.0.0.1:443"
|
||||
}
|
||||
|
||||
func redirHTTPPort(port int) int {
|
||||
|
@ -185,8 +185,8 @@ func Test_listenAddress(t *testing.T) {
|
||||
}{
|
||||
{"", "none", "1", "0.0.0.0:8080"},
|
||||
{"", "none", "0", "127.0.0.1:80"},
|
||||
{"", "auto", "false", "127.0.0.1:8443"},
|
||||
{"", "auto", "true", "0.0.0.0:443"},
|
||||
{"", "auto", "false", "127.0.0.1:443"},
|
||||
{"", "auto", "true", "0.0.0.0:8443"},
|
||||
{"127.0.0.1:8081", "none", "true", "127.0.0.1:8081"},
|
||||
{"192.168.1.1:8081", "none", "false", "192.168.1.1:8081"},
|
||||
{"127.0.0.1:8080", "none", "0", "127.0.0.1:8080"},
|
||||
|
Loading…
Reference in New Issue
Block a user