mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
parent
40a765b117
commit
d161f35c69
@ -221,7 +221,8 @@ func resolveURI(addr string) (network, address string) {
|
|||||||
network = ext
|
network = ext
|
||||||
uri.Scheme = scheme // remove `+unix`/`+tcp4`
|
uri.Scheme = scheme // remove `+unix`/`+tcp4`
|
||||||
if ext == "unix" {
|
if ext == "unix" {
|
||||||
uri.Host = base64.StdEncoding.EncodeToString([]byte(uri.Host + uri.Path))
|
uri.Host, uri.Path, _ = strings.Cut(uri.Path, ":")
|
||||||
|
uri.Host = base64.StdEncoding.EncodeToString([]byte(uri.Host))
|
||||||
}
|
}
|
||||||
address = uri.String()
|
address = uri.String()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user