spring-cloud / spring-cloud/spring-cloud-commons

InetUtils return address can keep order spring.cloud.inetutils.preferred-networks=10.,192.

Open
#396 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.