Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
What would you like to be added:
Why is this needed:
After some debug tests, I found that most of time spend on utilproxy.IsLocalIP(externalIP)
And fortunately, we could simply move the logic of geting net interface addrs from the for loop to enhance performance safely. After this change, the sync time could reduce from 12s to 730ms.
I will push a PR soon for this.