chiark
/
gitweb
/
~mdw
/
with-authinfo-kludge
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4ed4f06
)
with-authinfo-kludge: Trim default port from `authinfo-kludge' argument.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 Apr 2016 01:14:42 +0000
(
02:14
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 25 Apr 2016 01:14:42 +0000
(
02:14
+0100)
Only my specially hacked version can actually cope with this.
with-authinfo-kludge
patch
|
blob
|
blame
|
history
diff --git
a/with-authinfo-kludge
b/with-authinfo-kludge
index fae87b5807a28c8ac228391f3d8ba08e613ff991..f3bb42805eb6733cf2d5c0388a4f3b9c63584dbf 100755
(executable)
--- a/
with-authinfo-kludge
+++ b/
with-authinfo-kludge
@@
-592,6
+592,8
@@
sub fix_server_config ($) {
$s->{"_proxy_sockdir"} = undef;
$s->{"_proxy_server"} = defined $s->{"via"} ?
$s->{"sshbind"} : $s->{"remote"};
+ $s->{"_proxy_server"} =~ s/:119$//;
+ $s->{"_proxy_server"} =~ s/^\[(.*)\]$/$1/;
$s->{"_sshkid"} = undef;
$s->{"_ssh_master"} = undef;
}