Skip to content

关于执行器IpUtil#getLocalAddress0() 方法将InetAddress.getLocalHost()移动到开头的疑问? #3580

@wayn111

Description

@wayn111

查看com.xxl.job.core.util.IpUtil文件git提交历史,可以看到2018年就已经按照优先遍历网卡来获取第一个可用的外网地址,为什么在2020年最后一次提交中,又把 getLocalAddress0() 方法中的 InetAddress.getLocalHost() 移动到方法开头。想请教一下作者大大。

微信截图_20241203152723

Which version of XXL-JOB do you using?

xxl-job最新2.4.2版本

Expected behavior

Actual behavior

Steps to reproduce the behavior

Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions