mirror of
https://github.com/ChronosX88/netsukuku.git
synced 2024-11-22 10:12:18 +00:00
Correctly report configuration problem with masquerading script (instead of crashing).
This commit is contained in:
parent
9f5013fcde
commit
b38885cec1
@ -347,8 +347,11 @@ void init_internet_gateway_search(void)
|
||||
* If we are sharing our internet connection, activate the
|
||||
* masquerading.
|
||||
*/
|
||||
if(server_opt.share_internet)
|
||||
if(server_opt.share_internet) {
|
||||
igw_exec_masquerade_sh(server_opt.ip_masq_script, 0);
|
||||
if(!server_opt.ip_masq_script)
|
||||
fatal("No masquerading script was configured!");
|
||||
};
|
||||
|
||||
/*
|
||||
* Get the default gateway route currently set in the kernel routing
|
||||
|
Loading…
Reference in New Issue
Block a user