Skip to content

Commit

Permalink
set ipv6 dns as well in dual stack
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamreis committed Feb 4, 2021
1 parent 0f644c4 commit d9e0feb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions netinterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ def __init__(self, mode, hwaddr, ipaddr=None, netmask=None, gateway=None,
self.ipaddr = None
self.netmask = None
self.gateway = None
self.dns = None
self.domain = None

self.modev6 = mode
self.ipv6addr = ipaddr + "/" + netmask if mode == self.Static else None
Expand Down
2 changes: 2 additions & 0 deletions tui/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ def use_vlan_cb_change():
answers.modev6 = answers_ipv6.modev6
answers.ipv6addr = answers_ipv6.ipv6addr
answers.ipv6_gateway = answers_ipv6.ipv6_gateway
if answers_ipv6.dns != None:
answers.dns = answers_ipv6.dns if answers.dns == None else answers.dns + "," + answers_ipv6.dns

return RIGHT_FORWARDS, answers

Expand Down

0 comments on commit d9e0feb

Please sign in to comment.