I deal with the use of Shadowsocks, patch submission at https://github.com/gl-inet/portal-detection/commit/f465088c498d1b555629f6428a272b88ef154a3b