Commit d2591b8f authored by valtron's avatar valtron

force gateway over http

parent 62606ebe
# This file should be the first loaded by Caddy, so m1.escargot
# gets used "default" certificate for non-SNI requests (WinXP).
# This file should be the first loaded by Caddy, so m1.escargot gets
# used as the "default" certificate for non-SNI requests (WinXP).
# MSN Gateway only works over HTTP
http://gateway.m1.escargot.log1p.xyz/gateway/gateway.dll {
proxy / 127.0.0.1:8081 {
transparent
}
root /var/www/msn-server
}
m1.escargot.log1p.xyz,
ebyrdromegactcsmsn.log1p.xyz,
etkrdrstmsn.log1p.xyz,
......
......@@ -100,7 +100,7 @@ async def handle_http_gateway(req):
backend.util_set_sess_token(sess, ('msn-gw', session_id))
sess = backend.util_get_sess_by_token(('msn-gw', session_id))
if not sess or sess.closed:
return web.Response(status = 404, text = '')
return web.Response(status = 400, text = '')
sess.on_connect(req.transport)
......
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