Project

General

Profile

Bug #11618 ยป wg.inc.patch

Reza Arbab, 03/03/2021 04:15 PM

View differences:

/etc/inc/web/wg.inc 2021-03-01 19:28:49.396253000 -0600
257 257
		} elseif (is_ipaddrv6($ip)) {
258 258
			mwexec("/sbin/ifconfig " .
259 259
			    escapeshellarg($tunnel['name']) . " inet6 " .
260
			    escapeshellarg($ip) . " netmask " .
261
			    escapeshellarg(gen_subnet_mask($mask)) .
260
			    escapeshellarg($ip) . " prefixlen " .
261
			    escapeshellarg($mask) .
262 262
			    ($ip6_first ? "" : " alias"));
263 263
			if ($ip6_first) {
264 264
				file_put_contents("/tmp/{$tunnel['name']}_routerv6", wg_find_tunnel_gw($tunnel, $addr));
    (1-1/1)