Changeset 44507


Ignore:
Timestamp:
2015-02-22T09:29:34+01:00 (3 years ago)
Author:
blogic
Message:

ppp: Allow PPTP over a specified interface

In a dual-WAN setup, it's useful to specify an interface over which to
have PPTP.

Signed-off-by: Daniel Gimpelevich <daniel@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/network/services/ppp/files/ppp.sh

    r44094 r44507  
    182182        ppp_generic_init_config 
    183183        proto_config_add_string "server" 
     184        proto_config_add_string "interface" 
    184185        available=1 
    185186        no_device=1 
     
    190191        local iface="$2" 
    191192 
    192         local ip serv_addr server 
    193         json_get_var server server && { 
     193        local ip serv_addr server interface 
     194        json_get_vars interface server 
     195        [ -n "$server" ] && { 
    194196                for ip in $(resolveip -t 5 "$server"); do 
    195                         ( proto_add_host_dependency "$config" "$ip" ) 
     197                        ( proto_add_host_dependency "$config" "$ip" $interface ) 
    196198                        serv_addr=1 
    197199                done 
Note: See TracChangeset for help on using the changeset viewer.