diff -ruN openvpn-2.3.2-orig/src/openvpn/multi.c openvpn-2.3.2/src/openvpn/multi.c
old
|
new
|
|
1396 | 1396 | static void |
1397 | 1397 | multi_set_virtual_addr_env (struct multi_context *m, struct multi_instance *mi) |
1398 | 1398 | { |
| 1399 | struct gc_arena gc = gc_new (); |
| 1400 | |
| 1401 | setenv_del (mi->context.c2.es, "ifconfig_ipv6_pool_local_ip"); |
| 1402 | setenv_del (mi->context.c2.es, "ifconfig_ipv6_pool_remote_ip"); |
1399 | 1403 | setenv_del (mi->context.c2.es, "ifconfig_pool_local_ip"); |
1400 | 1404 | setenv_del (mi->context.c2.es, "ifconfig_pool_remote_ip"); |
1401 | 1405 | setenv_del (mi->context.c2.es, "ifconfig_pool_netmask"); |
… |
… |
|
1410 | 1414 | mi->context.c2.push_ifconfig_local, |
1411 | 1415 | SA_SET_IF_NONZERO); |
1412 | 1416 | |
| 1417 | setenv_str (mi->context.c2.es, |
| 1418 | "ifconfig_ipv6_pool_remote_ip", |
| 1419 | print_in6_addr( mi->context.c2.push_ifconfig_ipv6_local, 0, &gc )); |
| 1420 | |
1413 | 1421 | if (tunnel_type == DEV_TYPE_TAP || (tunnel_type == DEV_TYPE_TUN && tunnel_topology == TOP_SUBNET)) |
1414 | 1422 | { |
1415 | 1423 | setenv_in_addr_t (mi->context.c2.es, |
… |
… |
|
1423 | 1431 | "ifconfig_pool_local_ip", |
1424 | 1432 | mi->context.c2.push_ifconfig_remote_netmask, |
1425 | 1433 | SA_SET_IF_NONZERO); |
| 1434 | setenv_str (mi->context.c2.es, |
| 1435 | "ifconfig_ipv6_pool_local_ip", |
| 1436 | print_in6_addr( mi->context.c2.push_ifconfig_ipv6_remote, 0, &gc )); |
1426 | 1437 | } |
1427 | 1438 | } |
1428 | 1439 | |