mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
pppossh: use exec with pty option to eliminate a level of bufferbloat
While at it, also do the following fixes - Drop the URL pointing to the old github repo - Fix detection of default set of private keys Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ proto_pppossh_setup() {
|
||||
[ -n "$sshuser" ] || errmsg="${errmsg}Missing sshuser option\n"
|
||||
|
||||
json_get_values identity identity
|
||||
[ -z "$identity" ] && identity="'$home/.ssh/id_rsa' '$home/.ssh/id_dsa'"
|
||||
[ -z "$identity" ] && identity="$home/.ssh/id_rsa $home/.ssh/id_dsa"
|
||||
for fn in $identity; do
|
||||
[ -f "$fn" ] && opts="$opts -i $fn"
|
||||
done
|
||||
@@ -60,7 +60,7 @@ proto_pppossh_setup() {
|
||||
opts="$opts ${port:+-p $port}"
|
||||
opts="$opts ${ssh_options}"
|
||||
opts="$opts $sshuser@$server"
|
||||
pty="env 'HOME=$home' "$SSH" $opts pppd nodetach notty noauth"
|
||||
pty="exec env 'HOME=$home' $SSH $opts pppd nodetach notty noauth"
|
||||
|
||||
ppp_generic_setup "$config" noauth pty "$pty" "$ipaddr:$peeraddr"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user