From a5049f4ff2d56f00317fd95684e6f5e8abbb11a7 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sat, 24 Feb 2018 18:33:34 +0100 Subject: [PATCH] fix: fixes a bug on macOS with non printable characters in ESSID (ref #61) --- network/wifi_station.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/wifi_station.go b/network/wifi_station.go index 4d5e4359..68f2ed79 100644 --- a/network/wifi_station.go +++ b/network/wifi_station.go @@ -21,7 +21,7 @@ func cleanESSID(essid string) string { if strconv.IsPrint(c) { res += string(c) } else { - res += fmt.Sprintf("{0x%02x}", c) + break } } return res