mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-05-25 19:38:07 +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