mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
chore: add leading slash to ws-path
This commit is contained in:
parent
f29329fe80
commit
f16ebf9bfe
|
@ -338,6 +338,10 @@ func streamWebsocketConn(ctx context.Context, conn net.Conn, c *WebsocketConfig,
|
|||
RawQuery: u.RawQuery,
|
||||
}
|
||||
|
||||
if !strings.HasPrefix(uri.Path, "/") {
|
||||
uri.Path = "/" + uri.Path
|
||||
}
|
||||
|
||||
if c.TLS {
|
||||
uri.Scheme = "wss"
|
||||
config := c.TLSConfig
|
||||
|
|
Loading…
Reference in New Issue
Block a user