• liuzheng712's avatar
    fix(run_websocket.py): remote IP get bug · 5098b1c6
    liuzheng712 authored
    when use nginx  self.request.headers.get(X-Real-IP) will get real remote IP,
    self.request.remote_ip will get 127.0.0.1 ; if not it will git null, so need to use
    self.request.remote_ip for get the ip
    5098b1c6
run_websocket.py 16.7 KB