[3.0] 079c360 Actually use a default (80) if no port is specified
Tollef Fog Heen
tfheen at varnish-cache.org
Mon Apr 16 10:20:37 CEST 2012
commit 079c3608fae1d0c2c43097066b96fa3b3617cc68
Author: Rogier 'DocWilco' Mulhuijzen <github at bsdchicks.com>
Date: Sat Jan 14 13:37:57 2012 +0100
Actually use a default (80) if no port is specified
diff --git a/lib/libvcl/vcc_dir_dns.c b/lib/libvcl/vcc_dir_dns.c
index 8168a26..45c80c1 100644
--- a/lib/libvcl/vcc_dir_dns.c
+++ b/lib/libvcl/vcc_dir_dns.c
@@ -96,7 +96,7 @@ print_backend(struct vcc *tl,
if (serial >= 0)
Fb(tl, 0, "[%d]", serial);
Fb(tl, 0, "\",\n");
- Emit_Sockaddr(tl, &tmptok, b_defaults.port);
+ Emit_Sockaddr(tl, &tmptok, b_defaults.port ? b_defaults.port : "80");
Fb(tl, 0, "\t.hosthdr = \"");
if (b_defaults.hostheader != NULL)
More information about the varnish-commit
mailing list