gump-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1854540 - /gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
Date Thu, 28 Feb 2019 17:02:38 GMT
Author: markt
Date: Thu Feb 28 17:02:38 2019
New Revision: 1854540

URL: http://svn.apache.org/viewvc?rev=1854540&view=rev
Log:
Limit repo proxy to IPv4 localhost

Modified:
    gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java

Modified: gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java
URL: http://svn.apache.org/viewvc/gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java?rev=1854540&r1=1854539&r2=1854540&view=diff
==============================================================================
--- gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java (original)
+++ gump/mvnrepo/trunk/src/java/org/apache/gump/mvnrepoproxy/Main.java Thu Feb 28 17:02:38
2019
@@ -113,7 +113,7 @@ public class Main {
             HostResolver.initialize(props);
 
             Component c = getRepositoryComponent();
-            c.getServers().add(Protocol.HTTP, port);
+            c.getServers().add(Protocol.HTTP, "127.0.0.1", port);
             c.getClients().add(Protocol.HTTP);
             for (Client client : c.getClients()) {
                 client.setConnectTimeout(DEFAULT_CONNECT_TIMEOUT);



Mime
View raw message