fix escaped auth

This commit is contained in:
yiguous
2024-07-05 18:34:54 +08:00
committed by GitHub
parent 458ee1386c
commit a7ecd08046

@@ -393,7 +393,11 @@ func (c *clientConfig) parseURI() bool {
return false return false
} }
if u.User != nil { if u.User != nil {
c.Auth = u.User.String() auth, err := url.QueryUnescape(u.User.String())
if err != nil {
return false
}
c.Auth = auth
} }
c.Server = u.Host c.Server = u.Host
q := u.Query() q := u.Query()