Keep the iPhone's name out of its tailnet hostname
This commit is contained in:
@@ -26,7 +26,11 @@ func slug(_ text: String) -> String {
|
||||
|
||||
final class TailnetNode: Sendable {
|
||||
let sd: tailscale
|
||||
#if os(macOS)
|
||||
let hostname = "byre-app-\(slug(deviceName))"
|
||||
#else
|
||||
let hostname = "byre-app-\(slug(deviceKind))"
|
||||
#endif
|
||||
private let socks = TailnetProxy()
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user