spring-cloud / spring-cloud/spring-cloud-commons
InetUtils return address can keep order spring.cloud.inetutils.preferred-networks=10.,192.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 751
- Forks
- 744
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
I need a new feature, about spring.cloud.inetutils.preferred-networks=10.,192. will keep my setting order wheren return network address.
Example:
- network eth0: 192.168.220.180
- network tun0: 10.8.0.162
spring.cloud.inetutils.preferred-networks=10.,192.
I hope register service with ip=10.8.0.162, not 192.168.220.180, because I set preferred-networks order is 10. before 192.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating InetUtils and the handling of spring.cloud.inetutils.preferred-networks, then reproduce the eth0 and tun0 example from the issue. Confirm that the configured network prefixes are evaluated in their declared order and that the selected address is 10.8.0.162 rather than 192.168.220.180.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100