Skip to content

Commit

Permalink
trim character
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Jun 21, 2023
1 parent 8647c83 commit 7cd82d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ip/iputil.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func WhatsMyIP() (string, error) {
return "", err
}

return string(ip), nil
return strings.Trim(string(ip), "\n\r\t "), nil
}

// GetSourceIP gets the local ip based the destination ip
Expand Down

0 comments on commit 7cd82d6

Please sign in to comment.