Skip to content

Commit 93d4617

Browse files
committed
fix: mdns
1 parent 28da3eb commit 93d4617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mdns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub async fn discover_devices(time: f64) -> Result<Vec<DeviceInfo>> {
3333
let mut ip = None;
3434
for addr in record.get_addresses().iter() {
3535
if let IpAddr::V4(addr) = addr {
36-
if addr.is_private() {
36+
if addr.is_private() && addr.octets() != [10, 20, 17, 1] {
3737
ip = Some(addr.to_string());
3838
break;
3939
}

0 commit comments

Comments
 (0)