Skip to content

Conversation

Aaronontheweb
Copy link
Member

Resolves #2161

upgraded to Helios 2.1.2; set default DNS resolution target to IPV4; made DNS resolution configurable via HOCON.

@@ -70,12 +69,13 @@ public HeliosTransportDnsResolutionSpec()
Arb.Register(typeof(EndpointGenerators));
}

public Config BuildConfig(string hostname, int? port = null, string publichostname = null)
public Config BuildConfig(string hostname, int? port = null, string publichostname = null, bool useIpv6 = false)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified to use configurable IP version with DNS resolution

{
return ConfigurationFactory.ParseString(@"akka.actor.provider = ""Akka.Remote.RemoteActorRefProvider, Akka.Remote""")
.WithFallback("akka.remote.helios.tcp.hostname =\"" + hostname + "\"")
.WithFallback("akka.remote.helios.tcp.public-hostname =\"" + (publichostname ?? hostname) + "\"")
.WithFallback("akka.remote.helios.tcp.port = " + (port ?? 0))
.WithFallback("akka.remote.helios.tcp.dns-use-ipv6 = " + useIpv6.ToString().ToLowerInvariant())
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DNS resolution switch from configuration

@marcpiechura
Copy link
Contributor

LGTM

@marcpiechura marcpiechura merged commit 73d9cbf into akkadotnet:dev Jul 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants