config_get extiface config external_iface
config_get intiface config internal_iface
config_get extip config external_ip
+ config_get port config port 5000
config_get upload config upload
config_get download config download
config_get_bool logging config log_output 0
[ -n "$ipaddr" ] && append args "-a $ipaddr"
done
- append args "-p 5000 -U"
+ [ "$port" != "auto" ] && \
+ append args "-p $port"
+
+ append args "-U"
[ -n "$upload" -a -n "$download" ] && \
append args "-B $(($download * 1024 * 8)) $(($upload * 1024 * 8))"