Project

General

Profile

« Previous | Next » 

Revision 8fd0badd

Added by Ermal LUÇI almost 15 years ago

Ticket #482. This solves point 3) which converts the custom 'local IP' directive to the 2.0 format.

View differences:

etc/inc/upgrade_config.inc
1425 1425
					if (substr($tmpstr,0 ,6) == "devtun") {
1426 1426
						$assigned = true;
1427 1427
						continue;
1428
					} else if (substr($tmpstr, 0, 5) == "local") {
1429
						$localip = substr($tmpstr, 6);
1430
						$server['ipaddr'] = str_replace("\n", "", $localip);
1428 1431
					} else
1429 1432
						$cstmopts[] = $tmpcstmopt;
1430 1433
				}
......
1524 1527
					if (substr($tmpstr,0 ,6) == "devtun") {
1525 1528
						$assigned = true;
1526 1529
						continue;
1530
					} else if (substr($tmpstr, 0, 5) == "local") {
1531
                                                $localip = substr($tmpstr, 6);
1532
                                                $client['ipaddr'] = str_replace("\n", "", $localip);
1527 1533
					} else
1528 1534
						$cstmopts[] = $tmpcstmopt;
1529 1535
				}

Also available in: Unified diff