Added Virtual DNS display to VM settings
fixes QubesOS/qubes-issues#5050
This commit is contained in:
parent
492b8705b6
commit
7e17d23003
@ -442,6 +442,8 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtGui.QDialog):
|
||||
self.ip_label.setText(self.vm.ip or "none")
|
||||
self.netmask_label.setText(self.vm.visible_netmask or "none")
|
||||
self.gateway_label.setText(self.vm.visible_gateway or "none")
|
||||
dns_list = getattr(self.vm, 'dns', ['10.139.1.1', '10.139.1.2'])
|
||||
self.dns_label.setText(", ".join(dns_list))
|
||||
else:
|
||||
self.networking_groupbox.setEnabled(False)
|
||||
|
||||
|
@ -261,6 +261,20 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QLabel" name="label_23">
|
||||
<property name="text">
|
||||
<string>Virtual DNS:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLabel" name="dns_label">
|
||||
<property name="text">
|
||||
<string>---</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
Reference in New Issue
Block a user