Skip to content

Commit

Permalink
fix: 修复无法选择禁用从请求头获取IP
Browse files Browse the repository at this point in the history
  • Loading branch information
guguan123 committed Oct 3, 2024
1 parent 46c6f49 commit 5675364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adm_panel/settings_sys.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
echo "从请求标头获取用户IP:<br />
<select name='get_ip_from_header'>
<option ".(setget('get_ip_from_header',"auto")=="auto"? " selected ":null)." value='auto'>自动识别</option>
<option ".(setget('get_ip_from_header',"disabled")=="disabled"? " selected ":null)." value='enable'>禁用</option>
<option ".(setget('get_ip_from_header',"disabled")=="disabled"? " selected ":null)." value='disabled'>禁用</option>
<option ".(setget('get_ip_from_header',"X-Forwarded-For")=="X-Forwarded-For"? " selected ":null)." value='X-Forwarded-For'>X-Forwarded-For</option>
<option ".(setget('get_ip_from_header',"X-Real-IP")=="X-Real-IP"? " selected ":null)." value='X-Real-IP'>X-Real-IP</option>
<option ".(setget('get_ip_from_header',"CF-Connecting-IP")=="CF-Connecting-IP"? " selected ":null)." value='CF-Connecting-IP'>CF-Connecting-IP</option>
Expand Down

0 comments on commit 5675364

Please sign in to comment.