Commit 75b91036 authored by nanahira's avatar nanahira

fix

parent 4b7106d5
Pipeline #32770 failed with stages
in 1440 minutes and 1 second
......@@ -1830,7 +1830,7 @@ class Room
# 网络连接
netRequestHandler = (client) ->
if !client.isWs
client.ip = client.remoteAddress
client.ip = client.remoteAddress or ''
client.is_local = client.ip and (client.ip.includes('127.0.0.1') or client.ip.includes(real_windbot_server_ip))
connect_count = ROOM_connected_ip[client.ip] or 0
......
......@@ -2478,7 +2478,7 @@
netRequestHandler = function(client) {
var closeHandler, connect_count, dataHandler, server;
if (!client.isWs) {
client.ip = client.remoteAddress;
client.ip = client.remoteAddress || '';
}
client.is_local = client.ip && (client.ip.includes('127.0.0.1') || client.ip.includes(real_windbot_server_ip));
connect_count = ROOM_connected_ip[client.ip] || 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment