mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net/tor: whitespace sweep
This commit is contained in:
parent
e4be764929
commit
1b704043f7
5 changed files with 6 additions and 10 deletions
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
$( document ).ready(function() {
|
||||
var data_get_map = {
|
||||
'general': '/api/tor/general/get',
|
||||
'general': '/api/tor/general/get',
|
||||
'relay': '/api/tor/relay/get'
|
||||
};
|
||||
mapDataToFormUI(data_get_map).done(function(data){
|
||||
|
|
@ -201,7 +201,7 @@ $( document ).ready(function() {
|
|||
<button class="btn btn-primary" id="relaysaveAct" type="button"><b>{{ lang._('Save') }}</b> <i class="saveAct_progress"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="exitnodeacl" class="tab-pane fade in">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
{{ lang._('Running an exit node may be lead to legal issues and seized hardware. Be careful with your settings here.') }}
|
||||
|
|
|
|||
|
|
@ -33,4 +33,3 @@ command:/usr/local/opnsense/service/scripts/tor/get_hostnames
|
|||
parameters:
|
||||
type:script_output
|
||||
message:query hostnames of hidden services
|
||||
|
||||
|
|
|
|||
|
|
@ -5,5 +5,3 @@ mkdir -p /var/run/tor
|
|||
|
||||
# required to access the pf device for nat
|
||||
/usr/sbin/pw groupmod proxy -m _tor
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
<?php
|
||||
|
||||
define('TOR_DATA_DIR', '/var/db/tor');
|
||||
|
||||
|
|
|
|||
|
|
@ -159,10 +159,10 @@ ExitPolicyRejectPrivate {{ OPNsense.tor.relay.exitrejectprivateip }}
|
|||
{% for policy in helpers.toList('OPNsense.tor.exitpolicy.policy') %}
|
||||
{% if policy.enabled == '1' %}
|
||||
ExitPolicy {{ policy.action }}{% if policy.type == 'v6' %}6{% endif
|
||||
%} {% if policy.network == '' %}*{% if 'v' in policy.type %}{{ policy.type|replace('v','') }}{% endif%}{% else
|
||||
%}{{ policy.network }}{% endif
|
||||
%}{% if 'startport' in policy %}:{{ policy.startport
|
||||
}}{% if 'endport' in policy %}-{{ policy.endport }}{% endif
|
||||
%} {% if policy.network == '' %}*{% if 'v' in policy.type %}{{ policy.type|replace('v','') }}{% endif%}{% else
|
||||
%}{{ policy.network }}{% endif
|
||||
%}{% if 'startport' in policy %}:{{ policy.startport
|
||||
}}{% if 'endport' in policy %}-{{ policy.endport }}{% endif
|
||||
%}{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue