mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
don't fail on iptables lock
This commit is contained in:
parent
44d926370e
commit
c4f597338b
@ -1,6 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Pi-KVM - OTG network service
|
Description=Pi-KVM - OTG network service
|
||||||
After=kvmd-otg.service
|
After=kvmd-otg.service
|
||||||
|
Wants=network-pre.target
|
||||||
|
After=network-pre.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
|||||||
@ -529,7 +529,7 @@ def _get_config_scheme() -> Dict:
|
|||||||
"allow_tcp": Option([], type=valid_ports_list),
|
"allow_tcp": Option([], type=valid_ports_list),
|
||||||
"allow_udp": Option([67], type=valid_ports_list),
|
"allow_udp": Option([67], type=valid_ports_list),
|
||||||
"forward_iface": Option("", type=valid_stripped_string),
|
"forward_iface": Option("", type=valid_stripped_string),
|
||||||
"iptables_cmd": Option(["/usr/bin/iptables"], type=valid_command),
|
"iptables_cmd": Option(["/usr/bin/iptables", "--wait=5"], type=valid_command),
|
||||||
},
|
},
|
||||||
|
|
||||||
"commands": {
|
"commands": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user