aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r--src/firejail/main.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index b2b4fe525..9cd89d42c 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -2034,18 +2034,20 @@ int main(int argc, char **argv) {
2034 fprintf(stderr, "Error: no network device configured\n"); 2034 fprintf(stderr, "Error: no network device configured\n");
2035 exit(1); 2035 exit(1);
2036 } 2036 }
2037 if (br->arg_ip_none || br->ip6sandbox) { 2037 if (br->ip6sandbox) {
2038 fprintf(stderr, "Error: cannot configure the IP address twice for the same interface\n"); 2038 fprintf(stderr, "Error: cannot configure the IP address twice for the same interface\n");
2039 exit(1); 2039 exit(1);
2040 } 2040 }
2041 2041
2042 // configure this IP address for the last bridge defined 2042 // configure this IP address for the last bridge defined
2043 // todo: verify ipv6 syntax 2043 if (check_ip46_address(argv[i] + 6) == 0) {
2044 br->ip6sandbox = argv[i] + 6; 2044 fprintf(stderr, "Error: invalid IPv6 address\n");
2045// if (atoip(argv[i] + 5, &br->ipsandbox)) { 2045 exit(1);
2046// fprintf(stderr, "Error: invalid IP address\n"); 2046 }
2047// exit(1); 2047
2048// } 2048 br->ip6sandbox = strdup(argv[i] + 6);
2049 if (br->ip6sandbox == NULL)
2050 errExit("strdup");
2049 } 2051 }
2050 else 2052 else
2051 exit_err_feature("networking"); 2053 exit_err_feature("networking");