diff --git a/tor/torProvider.go b/tor/torProvider.go index a43fe32..d8ea076 100644 --- a/tor/torProvider.go +++ b/tor/torProvider.go @@ -97,7 +97,7 @@ func (tp *torProvider) GetInfo(onion string) (map[string]string, error) { circuits, streams, err := getCircuitInfo(tp.t.Control) if err == nil { - var cirucitID string + var circuitID string for _, stream := range streams { if stream.Key == "stream-status" { lines := strings.Split(stream.Val, "\n") @@ -106,7 +106,7 @@ func (tp *torProvider) GetInfo(onion string) (map[string]string, error) { // StreamID SP StreamStatus SP CircuitID SP Target CRLF if len(parts) == 4 { if strings.HasPrefix(parts[3], onion) { - cirucitID = parts[2] + circuitID = parts[2] break } } @@ -114,7 +114,7 @@ func (tp *torProvider) GetInfo(onion string) (map[string]string, error) { } } - if cirucitID == "" { + if circuitID == "" { return nil, errors.New("could not find circuit") } @@ -126,7 +126,7 @@ func (tp *torProvider) GetInfo(onion string) (map[string]string, error) { parts := strings.Split(line, " ") // CIRCID SP STATUS SP PATH... - if len(parts) >= 3 && cirucitID == parts[0] { + if len(parts) >= 3 && circuitID == parts[0] { //log.Debugf("Found Circuit for Onion %v %v", onion, parts) if parts[1] == "BUILT" { circuitPath := strings.Split(parts[2], ",")