mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-29 18:10:48 +02:00
tor/controller: fix response parsing for values containing the '=' character
This commit is contained in:
@ -149,7 +149,7 @@ func parseTorReply(reply string) map[string]string {
|
|||||||
// "KEY=VALUE". If the parameter doesn't contain "=", then we
|
// "KEY=VALUE". If the parameter doesn't contain "=", then we
|
||||||
// can assume it does not provide any other relevant information
|
// can assume it does not provide any other relevant information
|
||||||
// already known.
|
// already known.
|
||||||
keyValue := strings.Split(content, "=")
|
keyValue := strings.SplitN(content, "=", 2)
|
||||||
if len(keyValue) != 2 {
|
if len(keyValue) != 2 {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user