Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2026-02-11 23:32:23 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2026-02-11 23:32:23 +0300
commitf4057989f520daaef30b9d1cc0b0b0f12dbd7edc (patch)
treed722a403b238004a2ad1211548408942add7c662 /web/controller/xray_setting.go
parent84013b0b3f4b4da47e776cbbb44af849c33e664f (diff)
Require HTTP 200 from curl before using IP
Replace simple curl+trim checks with a response+http_code parse to ensure the remote URL returns HTTP 200 and a non-empty body before assigning server_ip. Changes applied to install.sh, update.sh and x-ui.sh: use curl -w to append the status code, extract http_code and ip_result, and only set server_ip when http_code == 200 and ip_result is non-empty. This makes the IP discovery more robust against error pages or partial responses while keeping the existing timeout behavior.
Diffstat (limited to 'web/controller/xray_setting.go')
0 files changed, 0 insertions, 0 deletions