lws: routing fixes
This commit is contained in:
parent
e38615c9c6
commit
75ab5f7515
@ -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;
|
||||||
|
@ -96,8 +96,6 @@ class MyOpenWrtUtils {
|
|||||||
$url .= $arguments;
|
$url .= $arguments;
|
||||||
}
|
}
|
||||||
|
|
||||||
// debugLog($url);
|
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user