Get rid of hostName checks when refreshing VRCOSC settings (#1867)

This commit is contained in:
Sapphire authored and GitHub committed 2026-06-21 05:27:37 +02:00
1 parent 2b82638961
commit 5b45d26c2d
1 file changed
+1 -2
@@ -119,7 +119,7 @@ class VRCOSCHandler(
for (netInt in NetworkInterface.getNetworkInterfaces()) {
if (netInt.isUp && !netInt.isLoopback && !netInt.isVirtual) {
for (netAddr in netInt.interfaceAddresses) {
if (a == netAddr.address || a.address.contentEquals(netAddr.address.address) || a.hostName == netAddr.address.hostName) {
if (a == netAddr.address || a.address.contentEquals(netAddr.address.address)) {
return true
}
}
@@ -134,7 +134,6 @@ class VRCOSCHandler(
b != null &&
(
a.address.contentEquals(b.address) ||
(a.hostName == b.hostName) ||
(ipIsLocal(a) && ipIsLocal(b))
)
)