Message ID | 20250325105724.1285-1-gert@greenie.muc.de |
---|---|
State | New |
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:81e:b0:60a:d70a:d3c7 with SMTP id jj30csp2433558mab; Tue, 25 Mar 2025 03:57:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWKZoTuW8ff23o/JAwXYK75FWUJXGRo8s1pBqcai/vRN1JNbW0TF/YH3q3NJiYbN/NvqeuGOnxDR+k=@openvpn.net X-Google-Smtp-Source: AGHT+IETIJBAp7OqyxdgUnmEqYvQ8AfU1PoCE7UyS4tFsS+PqMT6y9jUzrtnjDNnO/eSJQUEVi93 X-Received: by 2002:a05:6e02:3d86:b0:3d3:ff09:432c with SMTP id e9e14a558f8ab-3d5960bf789mr181093825ab.4.1742900262774; Tue, 25 Mar 2025 03:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742900262; cv=none; d=google.com; s=arc-20240605; b=hiuoGpJNLRf5p0TZYsreAP50n/INzEJLWNSOQO/AJBQbdoueaEHzgnOaA5XZLImx71 hlljNG5xNKhgFzNYfLWJc3BUhPl7nP9tc5ESLfkDsaN7JnDC0kXeKXaPd7LCAOiIYtcr XJUyBqInc14TJDHHMJrnvGpR1g+w1dii4/ekUL/1fXHLIV1JUPUZKKgwiFJ3+gygt08e +TzZtXN+stn5kxG0cYIlHjD5j+qS3SMQJxHFw4ecwLorfhi3Dy8uJx6zOanUoOyt0s/R HMvFvRV/R7TTORDQQvyWKvVS+W4jxrus+vGy422nuoINWjY5vYo6/Ot3PycdlHbjD7Ty tjaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:dkim-signature; bh=S0bK4zLGxl6CSkOz/iFcpiRZx9lw+BbCrPM/cqrWjeE=; fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=; b=erC/jvkJMGGuszw+Dw+Yx/rJfLARqXJcQ7//TUQpwkaujWtF/FGOmzudYkbX1aMEoA qHnZSX6FTue/VRBYgFuvCMW6/eloaz/qJgQ4JHI7/KFDGl5sYBKLPLAZ7UiBpYGsBvD2 SiE2nDVvQy3jtOq/56zRcnFxIaG077N3+hlXWQmURKa38LUo737feUSchU3+4KjQePyO YN9XAzozFsNMjeMkEwDzkiVfNcgfB43uZfqNTwiE+5gUksuh+qyHKsaCi0ycajYE4S/G Y3zBEdJIOrL1R3rFQTOiX4sqYmOhZly6jJCYXDe5RJLmrG6bUUxBSUtLhM9eANYusXh5 wg8g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=ccsj9GUU; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=jsdyVEQM; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 8926c6da1cb9f-4f2cbe1b467si9140794173.33.2025.03.25.03.57.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Mar 2025 03:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=ccsj9GUU; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=jsdyVEQM; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1tx1yU-0002JC-Fh; Tue, 25 Mar 2025 10:57:38 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <gert@blue.greenie.muc.de>) id 1tx1yT-0002J5-21 for openvpn-devel@lists.sourceforge.net; Tue, 25 Mar 2025 10:57:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=M6zTSmzwFm2aEwngPYnA1A7/nERu/mLZaZGQetKLkhM=; b=ccsj9GUUYyKXJvBLFbtQCfh0xW HsAv+v4j1nTMc3w8Va5LxAWvbJ/DpRcGJiAf0KVuvvRefMHZxP5BKCVu1UGvicKXsSaP4nQPwDMju vaaQDHI25KTEg2tAbAQ1INXrqZ48WkIvW+vsB1lw2MrDHXYFopsFrrmUHioO/KhHf7xQ=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=M6zTSmzwFm2aEwngPYnA1A7/nERu/mLZaZGQetKLkhM=; b=jsdyVEQM4FCh5ZVJQyzrrp3A3Z bFtp48/qbLiu6z3vZczijnSCSdkrYltgbsJKe1NUZXsVQ+46+KS5NHOoSoDnJr2ePWgK1XEKritGf J/iCXzB/25sUYninIqu9eYwuF0653jT+ULYPLn6LLNFZMsxvjNKXLOVEO52LKJr1IUF4=; Received: from dhcp-174.greenie.muc.de ([193.149.48.174] helo=blue.greenie.muc.de) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1tx1yS-00009G-KE for openvpn-devel@lists.sourceforge.net; Tue, 25 Mar 2025 10:57:37 +0000 Received: from blue.greenie.muc.de (localhost [127.0.0.1]) by blue.greenie.muc.de (8.17.1.9/8.17.1.9) with ESMTP id 52PAvPVF001298 for <openvpn-devel@lists.sourceforge.net>; Tue, 25 Mar 2025 11:57:25 +0100 Received: (from gert@localhost) by blue.greenie.muc.de (8.17.1.9/8.17.1.9/Submit) id 52PAvPFo001297 for openvpn-devel@lists.sourceforge.net; Tue, 25 Mar 2025 11:57:25 +0100 From: Gert Doering <gert@greenie.muc.de> To: openvpn-devel@lists.sourceforge.net Date: Tue, 25 Mar 2025 11:57:24 +0100 Message-ID: <20250325105724.1285-1-gert@greenie.muc.de> X-Mailer: git-send-email 2.45.2 In-Reply-To: <gerrit.1742429994000.I6d2ec69ac7a9ef5900d8f1d8541d6a19c9cb7df9@gerrit.openvpn.net> References: <gerrit.1742429994000.I6d2ec69ac7a9ef5900d8f1d8541d6a19c9cb7df9@gerrit.openvpn.net> MIME-Version: 1.0 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Antonio Quartulli <antonio@mandelbit.com> When creating a socket to connect to a remote (this happens in client mode) always use the protocol specified for the remote. The listening protocol in this case is just ignored as it does not make any sense. Content analysis details: (0.0 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.149.48.174 listed in sa-trusted.bondedsender.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [193.149.48.174 listed in bl.score.senderscore.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-Headers-End: 1tx1yS-00009G-KE Subject: [Openvpn-devel] [PATCH v1] socket: use remote proto when creating client sockets X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1827563385750798512?= X-GMAIL-MSGID: =?utf-8?q?1827563385750798512?= |
Series |
[Openvpn-devel,v1] socket: use remote proto when creating client sockets
|
expand
|
diff --git a/src/openvpn/socket.c b/src/openvpn/socket.c index 6b32e30..ad97830 100644 --- a/src/openvpn/socket.c +++ b/src/openvpn/socket.c @@ -1886,6 +1886,11 @@ const char *remote_host = o->ce.remote; const char *remote_port = o->ce.remote_port; + if (remote_host) + { + proto = o->ce.proto; + } + if (c->mode == CM_CHILD_TCP || c->mode == CM_CHILD_UDP) { struct link_socket *tmp_sock = NULL;