wok-next diff ppp/stuff/ppp.cgi @ rev 19355
drobbear/pppssh: optional UDP unencrypted link
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 26 13:47:19 2016 +0200 (2016-07-26) |
parents | 35c789882b3c |
children | 50aef5b483cb |
line diff
1.1 --- a/ppp/stuff/ppp.cgi Sun Nov 08 18:19:02 2015 +0100 1.2 +++ b/ppp/stuff/ppp.cgi Tue Jul 26 13:47:19 2016 +0200 1.3 @@ -96,6 +96,7 @@ 1.4 LOCALPPP="$(GET localpppopt)" 1.5 REMOTEPPP="$(GET remotepppopt)" 1.6 ROUTES="$(GET routes)" 1.7 +UDP="$(GET udp)" 1.8 EOT 1.9 [ "$(GET pass)" ] && export DROPBEAR_PASSWORD="$(GET pass)" 1.10 case " $(GET) " in 1.11 @@ -116,7 +117,7 @@ 1.12 EOT 1.13 pppssh "$(GET ssharg) $(GET peer)" \ 1.14 "$(GET localip):$(GET remoteip) $(GET localpppopt)" \ 1.15 - "$(GET remotepppopt)" "$(GET routes)" & 1.16 + "$(GET remotepppopt)" "$(GET routes)" "$(GET udp)" & 1.17 ;; 1.18 esac 1.19 ;; 1.20 @@ -337,6 +338,10 @@ 1.21 <td>$(_ 'Peer routes')</td> 1.22 <td><input type="text" name="routes" size="50" value="${ROUTES:-192.168.10.0/24 192.168.20.0/28}" title="$(_ "Routes on peer network to import or 'default' to redirect the default route")"/></td> 1.23 </tr> 1.24 + <tr> 1.25 + <td>$(_ 'UDP port')</td> 1.26 + <td><input type="text" name="udp" size="50" value="$UDP" title="$(_ "Optional UDP port for a real-time but unencrypted link")"/></td> 1.27 + </tr> 1.28 </table> 1.29 <footer><!-- 1.30 --><button type="submit" name="start_pppssh" data-icon="start" $startssh_disabled>$(_ 'Start' )</button><!--