mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
another dns fix
This commit is contained in:
parent
6226e942d8
commit
51ac65d542
@ -430,7 +430,7 @@ def _get_config_scheme() -> Dict:
|
|||||||
|
|
||||||
"otgnet": {
|
"otgnet": {
|
||||||
"iface": {
|
"iface": {
|
||||||
"net": Option("169.254.0.0/24", type=functools.partial(valid_net, v6=False)),
|
"net": Option("169.254.0.0/28", type=functools.partial(valid_net, v6=False)),
|
||||||
"ip_cmd": Option(["/usr/bin/ip"], type=valid_command),
|
"ip_cmd": Option(["/usr/bin/ip"], type=valid_command),
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -445,7 +445,7 @@ def _get_config_scheme() -> Dict:
|
|||||||
"post_start_cmd": Option([
|
"post_start_cmd": Option([
|
||||||
"/usr/bin/systemd-run",
|
"/usr/bin/systemd-run",
|
||||||
"--unit=kvmd-otgnet-dnsmasq",
|
"--unit=kvmd-otgnet-dnsmasq",
|
||||||
"dnsmasq",
|
"/usr/bin/dnsmasq",
|
||||||
"--interface={iface}",
|
"--interface={iface}",
|
||||||
"--port=0",
|
"--port=0",
|
||||||
"--dhcp-range={dhcp_ip_begin},{dhcp_ip_end},24h",
|
"--dhcp-range={dhcp_ip_begin},{dhcp_ip_end},24h",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user