diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-06-25 19:49:01 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2025-06-25 19:49:01 +0000 |
| commit | 9acee22dd82472bf408204a066476334c3568e87 (patch) | |
| tree | 2ba82c4cba39e633dcbf422f67cc3fe27f87a8df /src/libtipidee | |
| parent | 592c13a20f5ece4a596635c75bf096ccd3dfa6b8 (diff) | |
| download | tipidee-9acee22dd82472bf408204a066476334c3568e87.tar.gz | |
Add rproxy
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libtipidee')
| -rw-r--r-- | src/libtipidee/tipidee_conf_get_redirection.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libtipidee/tipidee_conf_get_redirection.c b/src/libtipidee/tipidee_conf_get_redirection.c index 9554227..a8397ec 100644 --- a/src/libtipidee/tipidee_conf_get_redirection.c +++ b/src/libtipidee/tipidee_conf_get_redirection.c @@ -22,9 +22,8 @@ static int get_redir (tipidee_conf const *conf, size_t minl, char *key, size_t l v = tipidee_conf_get_string(conf, key) ; key[0] = 'r' ; } - if (!v || v[0] == ' ') return 0 ; - if (v[0] < '@' || v[0] > 'C') return (errno = EPROTO, -1) ; - r->type = v[0] & ~'@' ; + if (!v || ((unsigned char)v[0] & 128)) return 0 ; + r->type = v[0] ; r->location = v+1 ; r->sub = path + (l - minl + 1) ; return 1 ; |
