Merge pull request #237 from rhansen/stringify-ports

Stringify default port numbers
This commit is contained in:
Sandro 2020-07-05 23:42:26 +02:00 committed by GitHub
commit 91803cbb41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2009,10 +2009,10 @@ sub geturl {
## always omit SSL for connections to local router
if ($force_ssl || ($globals{'ssl'} and (caller(1))[3] ne 'main::get_ip')) {
$use_ssl = 1;
$default_port = 443;
$default_port = '443';
} else {
$use_ssl = 0;
$default_port = 80;
$default_port = '80';
}
debug("proxy = %s", $proxy);
debug("protocol = %s", $use_ssl ? "https" : "http");