#19428: Sshtunnel cannot start in dynamic mode
-------------------------+----------------------------------
 Reporter:  wittywang@…  |      Owner:  developers
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  Chaos Calmer (trunk)
Component:  packages     |    Version:  Trunk
 Keywords:  sshtunnel    |
-------------------------+----------------------------------
 When trying to start sshtunnel in ssh dynamic mode (tunnelD), the service
 can not start with an error message of "sh: bad number".

 I tried to trace into /etc/init.d/sshtunnel, and find this error was
 caused by line 69 as below:
  [ "$remoteport" -gt 0 ] || append_string "error" "[tunnelD: $1]remoteport
 must be a positive integer" "; "

 In dynamic mode, no port number is passed to $remoteport, and this cause
 the error. After remarking this line, it works fine.

 Can someone help to currect this error in source code? Thank you.

--
Ticket URL: <https://dev.openwrt.org/ticket/19428>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to