multi: fix various typos in comments
This commit is contained in:
24 files changed
+37
-37
No files matched your search
+2
-2
@@ -124,8 +124,8 @@ func (c *Controller) sendCommand(command string) (int, string, error) {
|
||||
return code, reply, nil
|
||||
}
|
||||
|
||||
// parseTorReply parses the reply from the Tor server after receving a command
|
||||
// from a controller. This will parse the relevent reply parameters into a map
|
||||
// parseTorReply parses the reply from the Tor server after receiving a command
|
||||
// from a controller. This will parse the relevant reply parameters into a map
|
||||
// of keys and values.
|
||||
func parseTorReply(reply string) map[string]string {
|
||||
params := make(map[string]string)
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ func IsOnionHost(host string) bool {
|
||||
|
||||
// We'll now attempt to decode the host without its suffix, as the
|
||||
// suffix includes invalid characters. This will tell us if the host is
|
||||
// actually valid if succesful.
|
||||
// actually valid if successful.
|
||||
host = host[:suffixIndex]
|
||||
if _, err := Base32Encoding.DecodeString(host); err != nil {
|
||||
return false
|
||||
|
||||
Reference in new issue
Block a user