Nodes: auto-discover clawdis.internal
This commit is contained in:
@@ -4,6 +4,12 @@ public enum ClawdisBonjour {
|
||||
// v0: internal-only, subject to rename.
|
||||
public static let bridgeServiceType = "_clawdis-bridge._tcp"
|
||||
public static let bridgeServiceDomain = "local."
|
||||
public static let wideAreaBridgeServiceDomain = "clawdis.internal."
|
||||
|
||||
public static let bridgeServiceDomains = [
|
||||
bridgeServiceDomain,
|
||||
wideAreaBridgeServiceDomain,
|
||||
]
|
||||
|
||||
public static func normalizeServiceDomain(_ raw: String?) -> String {
|
||||
let trimmed = (raw ?? "").trimmingCharacters(in: .whitespacesAndNewlines)
|
||||
|
||||
Reference in New Issue
Block a user