From f358a0f3e4333fb57e5b0939d54a839573cc83b7 Mon Sep 17 00:00:00 2001 From: Y2k38 <1054458155@qq.com> Date: Sat, 5 Nov 2022 13:26:14 +0800 Subject: [PATCH] fix --- src/obfs_http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/obfs_http.c b/src/obfs_http.c index 30eae6b..3abf31d 100644 --- a/src/obfs_http.c +++ b/src/obfs_http.c @@ -244,9 +244,10 @@ check_http_header(buffer_t *buf) break; } - result = OBFS_ERROR; if (strncasecmp(hostname, obfs_http->host, len) == 0) { result = OBFS_OK; + } else { + result = OBFS_ERROR; } free(hostname); return result;