Trim quotes from IP returned by espat's GetDNS()

This commit is contained in:
Arsen6331
2022-08-18 22:01:12 +00:00
committed by Ron Evans
parent ce0ce03cfe
commit 2a2e897261
+1 -1
View File
@@ -29,7 +29,7 @@ func (d *Device) GetDNS(domain string) (string, error) {
return "", errors.New("Invalid domain lookup result")
}
res := strings.Split(r[1], "\r\n")
return res[0], nil
return strings.Trim(res[0], `"`), nil
}
// ConnectTCPSocket creates a new TCP socket connection for the ESP8266/ESP32.