mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
dnsmasq tweaks
This commit is contained in:
@@ -458,11 +458,16 @@ def _get_config_scheme() -> Dict:
|
|||||||
"/usr/bin/systemd-run",
|
"/usr/bin/systemd-run",
|
||||||
"--unit=kvmd-otgnet-dnsmasq",
|
"--unit=kvmd-otgnet-dnsmasq",
|
||||||
"/usr/bin/dnsmasq",
|
"/usr/bin/dnsmasq",
|
||||||
|
"--conf-file=/dev/null",
|
||||||
|
"--pid-file",
|
||||||
|
"--user=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",
|
||||||
"--dhcp-leasefile=/run/kvmd/dnsmasq.lease",
|
"--dhcp-leasefile=/run/kvmd/dnsmasq.lease",
|
||||||
"--no-daemon",
|
"--dhcp-option=3",
|
||||||
|
"--dhcp-option=6",
|
||||||
|
"--keep-in-foreground",
|
||||||
], type=valid_command),
|
], type=valid_command),
|
||||||
"pre_stop_cmd": Option([
|
"pre_stop_cmd": Option([
|
||||||
"/usr/bin/systemctl",
|
"/usr/bin/systemctl",
|
||||||
|
|||||||
Reference in New Issue
Block a user