[ https://issues.apache.org/jira/browse/MRESOLVER-382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744521#comment-17744521 ]
ASF GitHub Bot commented on MRESOLVER-382: ------------------------------------------ cstamas commented on code in PR #315: URL: https://github.com/apache/maven-resolver/pull/315#discussion_r1267875400 ########## maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java: ########## @@ -295,6 +300,19 @@ final class HttpTransporter extends AbstractTransporter { this.client = builder.build(); } + private InetAddress getBindAddress(RepositorySystemSession session) { + String bindAddress = ConfigUtils.getString(session, null, BIND_ADDRESS); Review Comment: I can envision some show that may be "segmented" (network wise). Hence, this seems to me low hanging fruit to all o"route per remote repository", so why not? ########## maven-resolver-transport-http/src/main/java/org/eclipse/aether/transport/http/HttpTransporter.java: ########## @@ -295,6 +300,19 @@ final class HttpTransporter extends AbstractTransporter { this.client = builder.build(); } + private InetAddress getBindAddress(RepositorySystemSession session) { + String bindAddress = ConfigUtils.getString(session, null, BIND_ADDRESS); Review Comment: I can envision some shop that may be "segmented" (network wise). Hence, this seems to me low hanging fruit to all o"route per remote repository", so why not? > Define local outgoing (bind) address > ------------------------------------ > > Key: MRESOLVER-382 > URL: https://issues.apache.org/jira/browse/MRESOLVER-382 > Project: Maven Resolver > Issue Type: Improvement > Components: Resolver > Reporter: Benjamin Marwell > Assignee: Tamas Cservenak > Priority: Major > Fix For: 1.9.14 > > > Currently, outgoing PUT connections (or download from central for that > matter) will be resolved over the default route. > However, this is not always feasible. > h2. Expected behaviour > A new property {{aether.connector.http.bind.address}} is defined for outgoing > requests, so that other routes (other interfaces) can be used. > h2. Actual behaviour > Certain systems cannot be reached when a firewall is only opened on a > non-default interface. > h2. User Story > Builds on servers with multiple interfaces: > * The default route is defined poorly > * Other interfaces are available and have the requested firewall rules > * User defines -Daether.connector.http.bind.address=${myotherip} (or local > address) to make outgoing connections to bind to another interface than the > default one. -- This message was sent by Atlassian Jira (v8.20.10#820010)