Projet

Général

Profil

« Précédent | Suivant » 

Révision 8ff231b4

Ajouté par Dmitriy K. il y a presque 10 ans

fixes #3713

Voir les différences:

etc/inc/gwlb.inc
555 555
				$ctype = strtoupper($ifcfg['ipaddr']);
556 556
				break;
557 557
			default:
558
				if (substr($ifcfg['if'], 0, 4) ==  "ovpn")
558
				if (substr($ifcfg['if'], 0, 4) ==  "ovpn") {
559
					// if current iface is an ovpn server endpoint then skip it
560
					if (substr($ifcfg['if'], 4, 1) == 's')
561
						continue 2;							
562

  
559 563
					$ctype = "VPNv4";
564
				}
560 565
				break;
561 566
		}
562 567
		$ctype = "_". strtoupper($ctype);
......
626 631
				break;
627 632
			default:
628 633
				$tunnelif = substr($ifcfg['if'], 0, 3);
629
				if (substr($ifcfg['if'], 0, 4) ==  "ovpn")
634
				if (substr($ifcfg['if'], 0, 4) ==  "ovpn") {
635
					// if current iface is an ovpn server endpoint then skip it
636
					if (substr($ifcfg['if'], 4, 1) == 's') 
637
						continue 2;							
638

  
630 639
					$ctype = "VPNv6";
631
				else if ($tunnelif == "gif" || $tunnelif == "gre")
640
				} else if ($tunnelif == "gif" || $tunnelif == "gre")
632 641
					$ctype = "TUNNELv6";
633 642
				break;
634 643
		}

Formats disponibles : Unified diff