protocols: unify TOS and TTL description strings
authorJo-Philipp Wich <[email protected]>
Mon, 7 Jun 2021 11:59:03 +0000 (13:59 +0200)
committerJo-Philipp Wich <[email protected]>
Sat, 12 Jun 2021 18:01:58 +0000 (20:01 +0200)
Signed-off-by: Jo-Philipp Wich <[email protected]>
(backported from commit b4c394f2d275ab093a16d994333da4f104e1723f)

protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/gre.js
protocols/luci-proto-gre/htdocs/luci-static/resources/protocol/grev6.js

index 2b24e59460134c06db1676b23dffa84c885508f8..91837b29c31af48497d2ae01986e09f81fd892a2 100644 (file)
@@ -66,12 +66,12 @@ return network.registerProtocol('gre', {
                o.placeholder = 1280;
                o.datatype = 'range(68, 9200)';
 
-               o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64) (optional)."));
+               o = s.taboption('advanced', form.Value, 'ttl', _("Override TTL"), _("Specify a TTL (Time to Live) for the encapsulating packet other than the default (64)."));
                o.optional = true;
                o.placeholder = 64;
                o.datatype = 'min(1)';
 
-               o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be <code>inherit</code> (the outer header inherits the value of the inner header), or an hexadecimal value <code>00..FF</code> (optional)."));
+               o = s.taboption('advanced', form.Value, 'tos', _("Override TOS"), _("Specify a TOS (Type of Service). Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
                o.optional = true;
                o.validate = function(section_id, value) {
                        if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))
index 6b029591b3130284363cb288dfdc87e490ac4ea2..97b84754ffc6318b8a0285db4a1297cd9d70ae43 100644 (file)
@@ -76,7 +76,7 @@ return network.registerProtocol('grev6', {
                o.placeholder = 64;
                o.datatype = 'min(1)';
 
-               o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a Traffic Class. Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
+               o = s.taboption('advanced', form.Value, 'tos', _("Traffic Class"), _("Specify a TOS (Type of Service). Can be <code>inherit</code> (the outer header inherits the value of the inner header) or an hexadecimal value <code>00..FF</code> (optional)."));
                o.optional = true;
                o.validate = function(section_id, value) {
                        if (value.length > 0 && !value.match(/^[a-f0-9]{1,2}$/i) && !value.match(/^inherit$/i))