Remove timeout

This commit is contained in:
Whispering Wind
2025-08-24 21:12:16 +03:30
committed by GitHub
parent e58b3dc000
commit 90bf877a73
2 changed files with 2 additions and 3 deletions

View File

@ -15,8 +15,7 @@
"auth": { "auth": {
"type": "http", "type": "http",
"http": { "http": {
"url": "http://127.0.0.1:28262/auth", "url": "http://127.0.0.1:28262/auth"
"timeout": "5s"
} }
}, },
"quic": { "quic": {

View File

@ -110,7 +110,7 @@ done
# ========== Update Configuration ========== # ========== Update Configuration ==========
info "Updating Hysteria configuration for HTTP authentication..." info "Updating Hysteria configuration for HTTP authentication..."
auth_block='{"type": "http", "http": {"url": "http://127.0.0.1:28262/auth", "timeout": "5s"}}' auth_block='{"type": "http", "http": {"url": "http://127.0.0.1:28262/auth"}}'
if [[ -f "$HYSTERIA_INSTALL_DIR/config.json" ]]; then if [[ -f "$HYSTERIA_INSTALL_DIR/config.json" ]]; then
jq --argjson auth_block "$auth_block" '.auth = $auth_block' "$HYSTERIA_INSTALL_DIR/config.json" > "$HYSTERIA_INSTALL_DIR/config.json.tmp" && mv "$HYSTERIA_INSTALL_DIR/config.json.tmp" "$HYSTERIA_INSTALL_DIR/config.json" jq --argjson auth_block "$auth_block" '.auth = $auth_block' "$HYSTERIA_INSTALL_DIR/config.json" > "$HYSTERIA_INSTALL_DIR/config.json.tmp" && mv "$HYSTERIA_INSTALL_DIR/config.json.tmp" "$HYSTERIA_INSTALL_DIR/config.json"
success "config.json updated to use auth server." success "config.json updated to use auth server."