From owner-svn-ports-head@freebsd.org Sun Aug 30 07:12:50 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C9C53CEDA4; Sun, 30 Aug 2020 07:12:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BfPg55lGyz4j7p; Sun, 30 Aug 2020 07:12:49 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 714BC12DC6; Sun, 30 Aug 2020 07:12:49 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 07U7CnxB005016; Sun, 30 Aug 2020 07:12:49 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 07U7CmaP005010; Sun, 30 Aug 2020 07:12:48 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202008300712.07U7CmaP005010@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sun, 30 Aug 2020 07:12:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r546975 - in head/www: . py-forcediphttpsadapter X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/www: . py-forcediphttpsadapter X-SVN-Commit-Revision: 546975 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 07:12:50 -0000 Author: sunpoet Date: Sun Aug 30 07:12:48 2020 New Revision: 546975 URL: https://svnweb.freebsd.org/changeset/ports/546975 Log: Add py-forcediphttpsadapter 1.0.1 This module implements a set of requests TransportAdapter, PoolManager, ConnectionPool and HTTPSConnection with one goal only: to use a specific IP address when connecting via SSL to a web service without running into SNI trouble. The usual technique to force an IP address on an HTTP connection with Requests is (assuming I want http://example.com/some/path on IP 1.2.3.4): requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'}) This is useful if I want to specifically test how 1.2.3.4 is responding; for instance, if example.com is DNS round-robined to several IP addresses and I want to hit one of them specifically. WWW: https://github.com/Roadmaster/forcediphttpsadapter Added: head/www/py-forcediphttpsadapter/ head/www/py-forcediphttpsadapter/Makefile (contents, props changed) head/www/py-forcediphttpsadapter/distinfo (contents, props changed) head/www/py-forcediphttpsadapter/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Sun Aug 30 07:12:43 2020 (r546974) +++ head/www/Makefile Sun Aug 30 07:12:48 2020 (r546975) @@ -1593,6 +1593,7 @@ SUBDIR += py-flexget SUBDIR += py-flup6 SUBDIR += py-folium + SUBDIR += py-forcediphttpsadapter SUBDIR += py-formencode SUBDIR += py-freenit SUBDIR += py-frozen-flask Added: head/www/py-forcediphttpsadapter/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-forcediphttpsadapter/Makefile Sun Aug 30 07:12:48 2020 (r546975) @@ -0,0 +1,20 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= forcediphttpsadapter +PORTVERSION= 1.0.1 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Use IP address when connecting via SSL + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include Added: head/www/py-forcediphttpsadapter/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-forcediphttpsadapter/distinfo Sun Aug 30 07:12:48 2020 (r546975) @@ -0,0 +1,3 @@ +TIMESTAMP = 1598643715 +SHA256 (forcediphttpsadapter-1.0.1.tar.gz) = 3be7c5d3546f0664a8edd15daf2f1f4a2bc1296488771a154f750567e6a15db6 +SIZE (forcediphttpsadapter-1.0.1.tar.gz) = 3624 Added: head/www/py-forcediphttpsadapter/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-forcediphttpsadapter/pkg-descr Sun Aug 30 07:12:48 2020 (r546975) @@ -0,0 +1,14 @@ +This module implements a set of requests TransportAdapter, PoolManager, +ConnectionPool and HTTPSConnection with one goal only: to use a specific IP +address when connecting via SSL to a web service without running into SNI +trouble. + +The usual technique to force an IP address on an HTTP connection with Requests +is (assuming I want http://example.com/some/path on IP 1.2.3.4): + requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'}) + +This is useful if I want to specifically test how 1.2.3.4 is responding; for +instance, if example.com is DNS round-robined to several IP addresses and I want +to hit one of them specifically. + +WWW: https://github.com/Roadmaster/forcediphttpsadapter