[master] f214d59 Document effects of UDS on std.port() and std.set_ip_tos().
Geoff Simmons
geoff at uplex.de
Thu Mar 8 09:24:07 UTC 2018
commit f214d59f0b989ca1c395c0ae2c3e88fa68b2de2d
Author: Geoff Simmons <geoff at uplex.de>
Date: Thu Mar 8 10:22:32 2018 +0100
Document effects of UDS on std.port() and std.set_ip_tos().
diff --git a/lib/libvmod_std/vmod.vcc b/lib/libvmod_std/vmod.vcc
index 62579b5..fe7fd63 100644
--- a/lib/libvmod_std/vmod.vcc
+++ b/lib/libvmod_std/vmod.vcc
@@ -60,7 +60,8 @@ $Function VOID set_ip_tos(INT tos)
Description
Sets the IP type-of-service (TOS) field for the current session
- to *tos*.
+ to *tos*. Silently ignored if the listen address is a Unix
+ domain socket.
Please note that the TOS field is not removed by the end of the
request so probably want to set it on every request should you
utilize it.
@@ -231,7 +232,9 @@ Description
$Function INT port(IP ip)
Description
- Returns the port number of the IP address *ip*.
+ Returns the port number of the IP address *ip*. Always returns
+ 0 for a ``*.ip`` variable whose value is ``0.0.0.0`` because
+ the listen address is a Unix domain socket.
$Function VOID rollback(HTTP h)
More information about the varnish-commit
mailing list