Browse Source

I Imported more of Michele Bini's fixes.

Valeska 10 years ago
parent
commit
9b8df0cd35
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/igs.c

+ 5
- 2
src/igs.c View File

347
 	 * If we are sharing our internet connection, activate the
347
 	 * If we are sharing our internet connection, activate the
348
 	 * masquerading.
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
 	 * Get the default gateway route currently set in the kernel routing
357
 	 * Get the default gateway route currently set in the kernel routing

Loading…
Cancel
Save