aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 1f5afa8..281a00f 100644
--- a/src/options.c
+++ b/src/options.c
@@ -154,6 +154,11 @@ int opt_set_ip_drop_membersip(lua_State *L, p_socket ps)
154 return opt_setmembership(L, ps, IPPROTO_IP, IP_DROP_MEMBERSHIP); 154 return opt_setmembership(L, ps, IPPROTO_IP, IP_DROP_MEMBERSHIP);
155} 155}
156 156
157int opt_set_ip6_v6only(lua_State *L, p_socket ps)
158{
159 return opt_setboolean(L, ps, IPPROTO_IPV6, IPV6_V6ONLY);
160}
161
157/*=========================================================================*\ 162/*=========================================================================*\
158* Auxiliar functions 163* Auxiliar functions
159\*=========================================================================*/ 164\*=========================================================================*/