summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 1fff240..7cc983e 100644
--- a/src/config.c
+++ b/src/config.c
@@ -576,6 +576,16 @@ void fastd_config_check(void) {
configure_methods();
}
+bool fastd_config_single_iface(void) {
+ if (conf.mode == MODE_TAP)
+ return true;
+
+ if (has_peer_group_peer_dirs(conf.peer_group))
+ return false;
+
+ return (VECTOR_LEN(ctx.peers) == 1);
+}
+
/** Performs the verify-config checks */
void fastd_config_verify(void) {
config_check_base();