-
Couldn't load subscription status.
- Fork 6.2k
Description
Expected Behavior
JndiDnsResolver should be all I need to discover a service given the domain and service-type.
Current Behavior
JndiDnsResolver only gives me the service hostname / ip address, but not which port.
Context
I'm building a system using SRV DNS service discovery with randomly assigned ports (to allow multiple services to be able to stack on one server). This non-static port means that I have to rewrite the JndiDnsResolver myself to capture the port, even though the JndiDnsResolver has the method to do it.
I think it would be a quick fix, and am happy to share what I've done, which will add an additional method to the JndiDnsResolver that also captures the port without changing the result for older methods.
Or, if anyone knows if this is already implemented and I'm using the wrong version of spring boot security, let me know that too! 👍
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-remoting</artifactId>
<version>5.3.4.RELEASE</version>
</dependency>