Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

Commit e246e64

Browse files
authored
fix: ignore USE_SSL since the WebGUI ignores it (#40)
1 parent e52ee66 commit e246e64

File tree

1 file changed

+2
-6
lines changed
  • src/usr/local/emhttp/plugins/tailscale/include/Tailscale

1 file changed

+2
-6
lines changed

src/usr/local/emhttp/plugins/tailscale/include/Tailscale/System.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,8 @@ public static function checkServeConfig(): void
5959

6060
$httpPort = isset($ident_config['PORT']) && is_scalar($ident_config['PORT'])
6161
? intval($ident_config['PORT']) : 80;
62-
$httpsPort = -1;
63-
64-
if (($ident_config['USE_SSL'] ?? "no") != "no") {
65-
$httpsPort = isset($ident_config['PORTSSL']) && is_scalar($ident_config['PORTSSL'])
66-
? intval($ident_config['PORTSSL']) : 443;
67-
}
62+
$httpsPort = isset($ident_config['PORTSSL']) && is_scalar($ident_config['PORTSSL'])
63+
? intval($ident_config['PORTSSL']) : 443;
6864

6965
$localAPI = new LocalAPI();
7066
$serveConfig = $localAPI->getServeConfig();

0 commit comments

Comments
 (0)