@@ -451,12 +451,12 @@ func testSRVQuery(tb testing.TB, matcher string, port uint16) {
451451 tb .Fatalf ("port is %d instead of 389" , srvRecord .Port )
452452 }
453453
454- if srvRecord .Hdr .Name != removeServiceAndPort (serviceName ) {
455- tb .Fatalf ("reply name is %q instead of %q" , srvRecord .Hdr .Name , removeServiceAndPort (serviceName ))
454+ if srvRecord .Hdr .Name != removeServiceAndProtocol (serviceName ) {
455+ tb .Fatalf ("reply name is %q instead of %q" , srvRecord .Hdr .Name , removeServiceAndProtocol (serviceName ))
456456 }
457457
458- if srvRecord .Target != removeServiceAndPort (serviceName ) {
459- tb .Fatalf ("target name is %q instead of %q" , srvRecord .Target , removeServiceAndPort (serviceName ))
458+ if srvRecord .Target != removeServiceAndProtocol (serviceName ) {
459+ tb .Fatalf ("target name is %q instead of %q" , srvRecord .Target , removeServiceAndProtocol (serviceName ))
460460 }
461461
462462 if len (reply .Extra ) != 2 {
@@ -470,8 +470,8 @@ func testSRVQuery(tb testing.TB, matcher string, port uint16) {
470470 case * dns.A :
471471 checkedA = true
472472
473- if e .Hdr .Name != removeServiceAndPort (serviceName ) {
474- tb .Fatalf ("A extra record name is %s instead of %s" , e .Hdr .Name , removeServiceAndPort (serviceName ))
473+ if e .Hdr .Name != removeServiceAndProtocol (serviceName ) {
474+ tb .Fatalf ("A extra record name is %s instead of %s" , e .Hdr .Name , removeServiceAndProtocol (serviceName ))
475475 }
476476
477477 if ! e .A .Equal (relayIPv4 ) {
@@ -480,8 +480,8 @@ func testSRVQuery(tb testing.TB, matcher string, port uint16) {
480480 case * dns.AAAA :
481481 checkedAAAA = true
482482
483- if e .Hdr .Name != removeServiceAndPort (serviceName ) {
484- tb .Fatalf ("AAAA extra record name is %s instead of %s" , e .Hdr .Name , removeServiceAndPort (serviceName ))
483+ if e .Hdr .Name != removeServiceAndProtocol (serviceName ) {
484+ tb .Fatalf ("AAAA extra record name is %s instead of %s" , e .Hdr .Name , removeServiceAndProtocol (serviceName ))
485485 }
486486
487487 if ! e .AAAA .Equal (relayIPv6 ) {
0 commit comments