Read misc.httpmethod, misc.protocol and misc.port from their IANA registries #26

Merged
lilleman merged 16 commits from iana-network-tables into main 2026-09-20 00:50:35 +02:00
2 changed files with 54 additions and 52 deletions
Showing only changes of commit ec6f0e2edb - Show all commits
+1 -1
View File
@@ -115,7 +115,7 @@ func TestShippedMiscReferenceData(t *testing.T) {
"httpmethod.safe": regexp.MustCompile(`^(yes|no)$`),
"httpmethod.idempotent": regexp.MustCompile(`^(yes|no)$`),
"port": regexp.MustCompile(`^[1-9]\d{0,4}$`),
"port.name": regexp.MustCompile(`^\S+$`),
"port.service": regexp.MustCompile(`^\S+$`),
"protocol": regexp.MustCompile(`^\S+( \S+)*$`),
"protocol.name": regexp.MustCompile(`\S`),
"protocol.number": regexp.MustCompile(`^\d{1,3}$`),
+5 -3
View File
@@ -710,9 +710,11 @@ func TestShippedTables(t *testing.T) {
"protocol[UDP].number": "17",
"protocol[ICMP].name": "Internet Control Message",
"port[443]": "443",
"port[443].name": "https",
"port[22].name": "ssh",
"port[3306].name": "mysql",
"port[443].service": "https",
"port[22].service": "ssh",
"port[3306].service": "mysql",
"port[2049].service": "nfs",
"protocol[Transmission Control].number": "6",
"territory[NP].timezone.offset": "+05:45",
} {
if got := fake(t, f, path); got != want {