[os-tor] MyFamily (#3698)

This commit is contained in:
Mike Bishop 2024-01-25 14:38:16 -05:00 committed by GitHub
parent b8aa264c3b
commit 1beca17cb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 19 additions and 1 deletions

View file

@ -1,5 +1,5 @@
PLUGIN_NAME= tor
PLUGIN_VERSION= 1.9
PLUGIN_VERSION= 1.10
PLUGIN_COMMENT= The Onion Router
PLUGIN_DEPENDS= tor ruby rubygem-rexml
PLUGIN_MAINTAINER= franz.fabian.94@gmail.com

View file

@ -54,6 +54,13 @@
<type>text</type>
<help>You can enter a publicly visible (obfuscated) email address into this field to allow other users to notify you if there are issues with your relay.</help>
</field>
<field>
<id>relay.family</id>
<label>Family</label>
<type>text</type>
<help>Fingerprints of other relays controlled or administered by the same group or organization. Do not list any bridge relay as it would compromise its concealment.</help>
<advanced>true</advanced>
</field>
<field>
<id>relay.bandwithrate</id>
<label>Bandwith Rate</label>

View file

@ -54,6 +54,11 @@
<Required>N</Required>
<mask><![CDATA[/^[a-zA-Z0-9 !§$%\/\(\)\\@,;.:_\-#+~*\?&<>]+$/]]></mask>
</contact_info>
<family type="TextField">
<Required>N</Required>
<!-- series of hex arrays -->
<mask>/^[a-fA-F0-9,]+$/</mask>
</family>
<bandwithrate type="IntegerField">
<Required>N</Required>
</bandwithrate>

View file

@ -171,6 +171,12 @@ OutboundBindAddress {{ OPNsense.tor.relay.outboundbindv6 }}
Nickname {{ OPNsense.tor.relay.nick }}
{% endif %}
{% if helpers.exists('OPNsense.tor.relay.family') and OPNsense.tor.relay.family != '' %}
{% if OPNsense.tor.relay.relay|default('1') != '1' %}
MyFamily {{ OPNsense.tor.relay.family }}
{% endif %}
{% endif %}
{% if helpers.exists('OPNsense.tor.relay.contact_info') and OPNsense.tor.relay.contact_info != '' %}
ContactInfo {{ OPNsense.tor.relay.contact_info }}
{% endif %}