tangled
alpha
login
or
join now
tree.fail
/
plcdns
15
fork
atom
PLC Directory over DNS (experiment)
15
fork
atom
overview
issues
pulls
pipelines
domain are case insensitive
tree.fail
5 months ago
ea4ed1d2
c60b558e
+5
-1
1 changed file
expand all
collapse all
unified
split
plcdns.go
+5
-1
plcdns.go
···
114
114
// _labeler.<did>.plc.atscan.net
115
115
func (h *PLCHandler) parseDomain(domain string) (string, QueryType, bool) {
116
116
domain = strings.TrimSuffix(domain, ".")
117
117
+
118
118
+
// DNS is case-insensitive, normalize to lowercase
119
119
+
domain = strings.ToLower(domain)
120
120
+
117
121
parts := strings.Split(domain, ".")
118
122
119
123
// Should be at least: [_prefix, <did>, plc, atscan, net]
···
136
140
return "", QueryInvalid, false
137
141
}
138
142
139
139
-
// Extract DID identifier
143
143
+
// Extract DID identifier (already lowercase due to normalization above)
140
144
didIdentifier := parts[1]
141
145
142
146
// Construct full DID