Development
This commit is contained in:
parent
6cd41dff1a
commit
936f2f7ea3
2 changed files with 4 additions and 4 deletions
|
|
@ -860,7 +860,7 @@ def build_table_worker_script(item, expanded_ra_fields):
|
|||
return ''
|
||||
if nonstandard == {'credentials'}:
|
||||
return (
|
||||
f'<script>registerTableWorker({js_str(worker_id)}, (function() {{\n'
|
||||
f'<script>document.addEventListener("DOMContentLoaded",function(){{registerTableWorker({js_str(worker_id)},(function(){{\n'
|
||||
' function _buildCreds(provider, data) {\n'
|
||||
' if (provider === \'noip\') {\n'
|
||||
' return \'<div class="cred-field"><span class="cred-label">U:</span>\' +\n'
|
||||
|
|
@ -888,9 +888,9 @@ def build_table_worker_script(item, expanded_ra_fields):
|
|||
' });\n'
|
||||
' }\n'
|
||||
' };\n'
|
||||
'}()));</script>\n'
|
||||
'}()));});</script>\n'
|
||||
)
|
||||
return f'<script>registerTableWorker({js_str(worker_id)}, {{}});</script>\n'
|
||||
return f'<script>document.addEventListener("DOMContentLoaded",function(){{registerTableWorker({js_str(worker_id)},{{}});}});</script>\n'
|
||||
|
||||
# Table cell renderer =================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -1573,7 +1573,7 @@ def build_nft_config(data, dry_run=False):
|
|||
if port_spec is not None:
|
||||
line(f" ip saddr {src} ip daddr {dst} {proto} dport {port_spec} ct state new accept")
|
||||
else:
|
||||
line(f" ip saddr {src} ip daddr {dst} {proto} ct state new accept")
|
||||
line(f" ip saddr {src} ip daddr {dst} ip protocol {proto} ct state new accept")
|
||||
line()
|
||||
|
||||
if all_fwd:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue