|
@@ -347,8 +347,11 @@ void init_internet_gateway_search(void)
|
347
|
347
|
* If we are sharing our internet connection, activate the
|
348
|
348
|
* masquerading.
|
349
|
349
|
*/
|
350
|
|
- if(server_opt.share_internet)
|
351
|
|
- igw_exec_masquerade_sh(server_opt.ip_masq_script, 0);
|
|
350
|
+ if(server_opt.share_internet) {
|
|
351
|
+ igw_exec_masquerade_sh(server_opt.ip_masq_script, 0);
|
|
352
|
+ if(!server_opt.ip_masq_script)
|
|
353
|
+ fatal("No masquerading script was configured!");
|
|
354
|
+ };
|
352
|
355
|
|
353
|
356
|
/*
|
354
|
357
|
* Get the default gateway route currently set in the kernel routing
|