mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Services: Dnsmasq / add dhcp option 114 for captive portal (https://github.com/opnsense/core/issues/8329)
This commit is contained in:
parent
592a62b0df
commit
eb2af7f2fd
@ -29,7 +29,11 @@
|
||||
import json
|
||||
import subprocess
|
||||
|
||||
result = {}
|
||||
# not yet registered by name, but pratical to have
|
||||
# https://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xhtml
|
||||
result = {
|
||||
'114' : 'dhcp captive-portal [114]'
|
||||
}
|
||||
sp = subprocess.run(['/usr/local/sbin/dnsmasq', '--help','dhcp'], capture_output=True, text=True)
|
||||
for line in sp.stdout.split("\n"):
|
||||
parts = line.split(maxsplit=1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user