Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当有多个active的interface时,send through的选择问题 #51

Closed
forest0 opened this issue Oct 19, 2019 · 0 comments
Closed

当有多个active的interface时,send through的选择问题 #51

forest0 opened this issue Oct 19, 2019 · 0 comments

Comments

@forest0
Copy link
Contributor

forest0 commented Oct 19, 2019

我的电脑上配置有两个active的interface: en0 和 en8

mellow disconnect时,默认路由:

Destination        Gateway            Flags        Refs      Use   Netif Expire
default            192.168.1.1        UGSc           76        0     en8

mellow connect时,默认路由:

Destination        Gateway            Flags        Refs      Use   Netif Expire
default            10.255.0.1         UGSc           78        0 utun233
default            192.168.1.1        UGScI          13        0     en0

平时主要使用en8,但现在被更换为了en0.

看了下目前findOriginalSendThrough的逻辑是:找到一个interface就返回。感觉这样不太合理。

findOriginalSendThrough的逻辑换为 “disconnect时的interface” 是否更为合理?

eycorsican added a commit that referenced this issue Mar 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant