[master] 23ec1fc3f vtc: Use a space as the host:port separator in b58

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Jun 24 15:29:05 UTC 2024


commit 23ec1fc3fb1198486350e1aedceb5b363d6e429c
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Jun 24 17:27:06 2024 +0200

    vtc: Use a space as the host:port separator in b58
    
    If ${localhost} resolves to an IPv6 address the colon separator becomes
    ambiguous.

diff --git a/bin/varnishtest/tests/b00058.vtc b/bin/varnishtest/tests/b00058.vtc
index 0b9afb73e..034727395 100644
--- a/bin/varnishtest/tests/b00058.vtc
+++ b/bin/varnishtest/tests/b00058.vtc
@@ -5,8 +5,8 @@ feature cmd {getent hosts localhost && getent services http}
 varnish v1 -arg "-p vcc_feature=-err_unref" -vcl {
 	backend b1 {.host = "127.0.0.1";}
 	backend b2 {.host = "[::1]:8080";}
-	backend b3 {.host = "${localhost}:8081";}
-	backend b4 {.host = "${localhost}:http";}
+	backend b3 {.host = "${localhost} 8081";}
+	backend b4 {.host = "${localhost} http";}
 	backend b5 {.host = "127.0.0.1";.port = "8081";}
 	backend b6 {.host = "127.0.0.1";.port = "http";}
 }


More information about the varnish-commit mailing list