wyx2685 / v2board

🚀A multiple proxy protocol manage panel application interface
MIT License
565 stars 169 forks source link

Ticket Enhancements #83

Closed cyberboyer closed 3 months ago

cyberboyer commented 4 months ago

Ticket Telegram Bot Enhancements 123

sunteta commented 4 months ago

wa .. cool nice

MusicKing66 commented 4 months ago

需要对应一下webman以及cf反代吧,不然获取到的不是127.0.0.1就是cf的IP。比如


if (isset($_SERVER['HTTP_X_REAL_IP'])) {
    $ip_address = $_SERVER['HTTP_X_REAL_IP'];
} elseif (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
    $ip_address = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR'])[0];
} else {
    $ip_address = $_SERVER['REMOTE_ADDR'];
}
wyx2685 commented 4 months ago

@MusicKing66 自行设置nginx吧

MusicKing66 commented 4 months ago

@MusicKing66 自行设置nginx吧

设置nginx也得有人接收吧。。仅一个remote_addr应该做不到吧