summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 04:46:48 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-03-23 04:46:48 +0100
commit7eab938b436a16925ad719c873c634ce93c9756b (patch)
treec84ad732a752549045bfcc572885ea8b06f56e15
parenta5a7b233b728f6d26a9f593f0a47265465522f4b (diff)
downloadfastd-7eab938b436a16925ad719c873c634ce93c9756b.tar
fastd-7eab938b436a16925ad719c873c634ce93c9756b.zip
config: lift peer count restrictions in TUN mode
-rw-r--r--src/config.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/config.c b/src/config.c
index 7cc983e..4259c4d 100644
--- a/src/config.c
+++ b/src/config.c
@@ -538,17 +538,6 @@ static void config_check_base(void) {
exit_error("config error: invalid interface name");
}
- if (conf.mode == MODE_TUN) {
- if (has_peer_group_peer_dirs(conf.peer_group))
- exit_error("config error: in TUN mode peer directories can't be used");
-
- if (conf.peer_group->children)
- exit_error("config error: in TUN mode peer groups can't be used");
-
- if (VECTOR_LEN(ctx.peers) != 1)
- exit_error("config error: in TUN mode exactly one peer must be configured");
- }
-
#ifndef USE_PACKET_MARK
if (conf.packet_mark)
exit_error("config error: setting a packet mark is not supported on this system");
@@ -559,11 +548,6 @@ static void config_check_base(void) {
void fastd_config_check(void) {
config_check_base();
- if (conf.mode == MODE_TUN) {
- if (!VECTOR_LEN(ctx.peers))
- exit_error("config error: in TUN mode exactly one peer must be configured");
- }
-
if (!VECTOR_LEN(ctx.peers) && !has_peer_group_peer_dirs(conf.peer_group))
exit_error("config error: neither fixed peers nor peer dirs have been configured");