feat(proxy)!: убрать TCP-режим проброса и bond
Бэкенд на сервере теперь только UDP (WireGuard/AmneziaWG): выпилены -mode/-bond из конфига ядра, control.sh, share-ссылки и UI. hasRunArgs определяется по obf_profile - сервер отдаёт его всегда, когда параметры запуска нашлись.
This commit is contained in:
1 parent
429affa0a1
commit
215156ea44
32 files changed
+65
-235
No files matched your search
@@ -86,17 +86,24 @@ EOF
|
||||
[ "$status" -ne 0 ]
|
||||
}
|
||||
|
||||
@test "share_info_emit: из run.args (mode/obf)" {
|
||||
printf -- '-listen\n:8443\n-mode\ntcp\n-obf-profile\nrtpopus\n-obf-key\ndeadbeef\n' > "$FT_PREFIX/run.args"
|
||||
@test "share_info_emit: из run.args (obf)" {
|
||||
printf -- '-listen\n:8443\n-obf-profile\nrtpopus\n-obf-key\ndeadbeef\n' > "$FT_PREFIX/run.args"
|
||||
_two_peers
|
||||
_DATA=()
|
||||
share_info_emit
|
||||
out=$(IFS=,; printf '%s' "${_DATA[*]}")
|
||||
[[ "$out" == *'"wg_backend":true'* ]]
|
||||
[[ "$out" == *'"mode":"tcp"'* ]]
|
||||
[[ "$out" == *'"obf_profile":"rtpopus"'* ]]
|
||||
}
|
||||
|
||||
@test "share_info_emit: run.args без obf -> obf_profile none" {
|
||||
printf -- '-listen\n:8443\n-connect\n127.0.0.1:51820\n' > "$FT_PREFIX/run.args"
|
||||
_DATA=()
|
||||
share_info_emit
|
||||
out=$(IFS=,; printf '%s' "${_DATA[*]}")
|
||||
[[ "$out" == *'"obf_profile":"none"'* ]]
|
||||
}
|
||||
|
||||
@test "clients_json: нет бинаря -> []" {
|
||||
[ "$(clients_json)" = "[]" ]
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user