mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-17 13:15:53 +00:00
Fix all build warnings
- Remove unused fileMonitor capture in TunnelServer.swift - Fix deprecated String(cString:) usage in NetworkUtility.swift by using String(cString: &hostname) - All warnings resolved, build completes cleanly
This commit is contained in:
parent
d7f6aa41be
commit
88d0504af8
3 changed files with 3 additions and 3 deletions
Binary file not shown.
|
|
@ -960,7 +960,7 @@ public final class TunnelServer {
|
|||
break
|
||||
}
|
||||
}
|
||||
} onCancel: { [fileMonitor] in
|
||||
} onCancel: {
|
||||
// fileMonitor?.cancel()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ enum NetworkUtility {
|
|||
if getnameinfo(interface.ifa_addr, socklen_t(interface.ifa_addr.pointee.sa_len),
|
||||
&hostname, socklen_t(hostname.count),
|
||||
nil, 0, NI_NUMERICHOST) == 0 {
|
||||
let ipAddress = String(cString: hostname)
|
||||
let ipAddress = String(cString: &hostname)
|
||||
|
||||
// Prefer addresses that look like local network addresses
|
||||
if ipAddress.hasPrefix("192.168.") ||
|
||||
|
|
@ -81,7 +81,7 @@ enum NetworkUtility {
|
|||
if getnameinfo(interface.ifa_addr, socklen_t(interface.ifa_addr.pointee.sa_len),
|
||||
&hostname, socklen_t(hostname.count),
|
||||
nil, 0, NI_NUMERICHOST) == 0 {
|
||||
let ipAddress = String(cString: hostname)
|
||||
let ipAddress = String(cString: &hostname)
|
||||
addresses.append(ipAddress)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue