ssh-proxy: use % as an alternative separator

Since OpenSSH 10.0p1, specifically
https://anongit.mindrot.org/openssh.git/commit/?id=487cf4c18c123b66c1f3f733398cd37e6b2ab6ab
ssh refuses comma in hostname by default.

Let's use % as an alternative separator.

Follow-up for defd5060d6.
This commit is contained in:
Yu Watanabe
2025-04-20 15:15:54 +02:00
committed by Daan De Meyer
parent e8939ebcd3
commit 7137e0bf24
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ static int process_machine(const char *machine, const char *port) {
static char *startswith_sep(const char *s, const char *prefix) {
const char *p = startswith(s, prefix);
if (p && IN_SET(*p, '/', ','))
if (p && IN_SET(*p, '/', '%'))
return (char*) p + 1;
return NULL;