I Imported more of Michele Bini's fixes.

This commit is contained in:
Valeska 2014-02-12 19:02:24 -08:00
parent 5cbded5473
commit 9b8df0cd35

View File

@ -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)
igw_exec_masquerade_sh(server_opt.ip_masq_script, 0);
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