Skip to content

Commit d10205c

Browse files
committed
Revert "fix: improve some compatibility with online install (#317)"
This reverts commit 15162b8.
1 parent 15162b8 commit d10205c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Shared/Server/Server+TLS.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@ func getLocalIPAddress() -> String? {
3232
if getnameinfo(interface.ifa_addr, socklen_t(interface.ifa_addr.pointee.sa_len),
3333
&hostname, socklen_t(hostname.count),
3434
nil, socklen_t(0), NI_NUMERICHOST) == 0 {
35-
switch name {
36-
case "pdp_ip0":
37-
address = "127.0.0.1"
38-
default:
39-
address = String(cString: hostname)
40-
}
35+
address = String(cString: hostname)
4136
Debug.shared.log(message: "Testing (\(name)): \(address!)")
4237
}
4338

0 commit comments

Comments
 (0)