sdk: fix IsVirtualRelay() conditional.

This commit is contained in:
fiatjaf
2026-06-20 10:24:15 -03:00
parent 347dba8d60
commit 724550d2a4
+1 -3
View File
@@ -22,9 +22,7 @@ func IsVirtualRelay(url string) bool {
return true
}
if !testing.Testing() &&
strings.HasPrefix(url, "ws://localhost") ||
strings.HasPrefix(url, "ws://127.0.0.1") {
if !testing.Testing() && (strings.HasPrefix(url, "ws://localhost") || strings.HasPrefix(url, "ws://127.0.0.1")) {
return true
}