lws: routing fixes

This commit is contained in:
Evgeny Zinoviev 2023-04-20 19:42:34 +03:00
parent e38615c9c6
commit 75ab5f7515
3 changed files with 10 additions and 9 deletions

View File

@ -93,11 +93,10 @@ class E3372
const ERROR_WRONG_SESSION = 125002; const ERROR_WRONG_SESSION = 125002;
const ERROR_WRONG_SESSION_TOKEN = 125003; const ERROR_WRONG_SESSION_TOKEN = 125003;
private string $host;
private $host; private array $headers = [];
private $headers = []; private bool $authorized = false;
private $authorized = false; private bool $useLegacyTokenAuth = false;
private $useLegacyTokenAuth = false;
public function __construct(string $host, bool $legacy_token_auth = false) { public function __construct(string $host, bool $legacy_token_auth = false) {
$this->host = $host; $this->host = $host;

View File

@ -96,8 +96,6 @@ class MyOpenWrtUtils {
$url .= $arguments; $url .= $arguments;
} }
// debugLog($url);
return $url; return $url;
} }

View File

@ -15,11 +15,15 @@ case "$1" in
;; ;;
ipset-add) ipset-add)
ipset add "$2" "$3" addr="$3"
addr="${addr/_/\/}"
ipset add "$2" "$addr"
;; ;;
ipset-del) ipset-del)
ipset del "$2" "$3" addr="$3"
addr="${addr/_/\/}"s
ipset del "$2" "$addr"
;; ;;
# ipset_list) # ipset_list)