[1/2] 6to4-tunnel: LOCAL_ADDRESS6 needs to be a valid IPv6 network

Submitted by Jonatan Schlag on June 2, 2017, 6:30 a.m.

Details

Message ID 1496385035-3913-1-git-send-email-jonatan.schlag@ipfire.org
State New
Headers show

Commit Message

Jonatan Schlag June 2, 2017, 6:30 a.m.
Fixes: #1359

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
---
 src/hooks/zones/6to4-tunnel | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/hooks/zones/6to4-tunnel b/src/hooks/zones/6to4-tunnel
index 2a200e0..f550741 100644
--- a/src/hooks/zones/6to4-tunnel
+++ b/src/hooks/zones/6to4-tunnel
@@ -48,6 +48,8 @@  hook_check_settings() {
 	assert isset SERVER_ADDRESS
 	assert isset LOCAL_ADDRESS
 	assert isset LOCAL_ADDRESS6
+	# LOCAL_ADDRESS6 needs to have a prefix
+	assert ipv6_net_is_valid LOCAL_ADDRESS6
 
 	if enabled AUTO_UPDATE_ENDPOINT; then
 		assert isset TUNNEL_ID