public inbox for network@lists.ipfire.org
 help / color / mirror / Atom feed
From: Jonatan Schlag <jonatan.schlag@ipfire.org>
To: network@lists.ipfire.org
Subject: [network] [PATCH 1/2] 6to4-tunnel: LOCAL_ADDRESS6 needs to be a	valid IPv6 network
Date: Fri, 02 Jun 2017 08:30:34 +0200	[thread overview]
Message-ID: <1496385035-3913-1-git-send-email-jonatan.schlag@ipfire.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 611 bytes --]

Fixes: #1359

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

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
-- 
2.6.3


             reply	other threads:[~2017-06-02  6:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-02  6:30 Jonatan Schlag [this message]
2017-06-02  6:30 ` [network] [PATCH 2/2] route: apply static routes on startup and restart Jonatan Schlag

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496385035-3913-1-git-send-email-jonatan.schlag@ipfire.org \
    --to=jonatan.schlag@ipfire.org \
    --cc=network@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox