{"action":"created","issue":{"url":"https://api.github.com/repos/zhuhaow/NEKit/issues/146","repository_url":"https://api.github.com/repos/zhuhaow/NEKit","labels_url":"https://api.github.com/repos/zhuhaow/NEKit/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/zhuhaow/NEKit/issues/146/comments","events_url":"https://api.github.com/repos/zhuhaow/NEKit/issues/146/events","html_url":"https://github.com/zhuhaow/NEKit/issues/146","id":295376632,"node_id":"MDU6SXNzdWUyOTUzNzY2MzI=","number":146,"title":"How can I share wifi with other smartphones while nekit running.","user":{"login":"chinsyo","id":3993726,"node_id":"MDQ6VXNlcjM5OTM3MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/3993726?v=4","gravatar_id":"","url":"https://api.github.com/users/chinsyo","html_url":"https://github.com/chinsyo","followers_url":"https://api.github.com/users/chinsyo/followers","following_url":"https://api.github.com/users/chinsyo/following{/other_user}","gists_url":"https://api.github.com/users/chinsyo/gists{/gist_id}","starred_url":"https://api.github.com/users/chinsyo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chinsyo/subscriptions","organizations_url":"https://api.github.com/users/chinsyo/orgs","repos_url":"https://api.github.com/users/chinsyo/repos","events_url":"https://api.github.com/users/chinsyo/events{/privacy}","received_events_url":"https://api.github.com/users/chinsyo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2018-02-08T03:50:58Z","updated_at":"2018-06-28T02:35:58Z","closed_at":"2018-02-08T03:54:42Z","author_association":"NONE","body":"P1: Phone with nekit running.\r\nP2: Phone needs proxy.\r\n\r\nI have try out many times.\r\n\r\n1. Turn on p1 hotspot and then p2 join the network, didn't work.\r\n2. P1 and p2 join the same wifi, set p2 proxy in wifi settings to p1's ip address (172.16.x.x for me), port of proxy server(9090 for me), didn't work.\r\n3. Same as [2], but replace p1's ip address to NEIPv4Settings address first (and only, 192.169.89.1 for me)\r\n\r\nI dont set exceptionList, set [\"\"] to matchDomains. And the configuration rule has set \r\n```\r\n      - 10.0.0.0/8\r\n      - 172.16.0.0/12\r\n      - 192.168.0.0/16\r\n      - 127.0.0.0/8\r\n      - 224.0.0.0/8\r\n      - 169.254.0.0/16\r\n      localhost\r\n```\r\nwith direct.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/zhuhaow/NEKit/issues/comments/400892074","html_url":"https://github.com/zhuhaow/NEKit/issues/146#issuecomment-400892074","issue_url":"https://api.github.com/repos/zhuhaow/NEKit/issues/146","id":400892074,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDg5MjA3NA==","user":{"login":"ufo22940268","id":848704,"node_id":"MDQ6VXNlcjg0ODcwNA==","avatar_url":"https://avatars0.githubusercontent.com/u/848704?v=4","gravatar_id":"","url":"https://api.github.com/users/ufo22940268","html_url":"https://github.com/ufo22940268","followers_url":"https://api.github.com/users/ufo22940268/followers","following_url":"https://api.github.com/users/ufo22940268/following{/other_user}","gists_url":"https://api.github.com/users/ufo22940268/gists{/gist_id}","starred_url":"https://api.github.com/users/ufo22940268/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ufo22940268/subscriptions","organizations_url":"https://api.github.com/users/ufo22940268/orgs","repos_url":"https://api.github.com/users/ufo22940268/repos","events_url":"https://api.github.com/users/ufo22940268/events{/privacy}","received_events_url":"https://api.github.com/users/ufo22940268/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T02:35:58Z","updated_at":"2018-06-28T02:35:58Z","author_association":"NONE","body":"```\r\n        proxySettings.httpServer = NEProxyServer(address: \"127.0.0.1\", port: 9090)\r\n        proxySettings.httpEnabled = true\r\n//        proxySettings.httpsServer = NEProxyServer(address: \"127.0.0;.1\", port: 9090)\r\n//        proxySettings.httpsEnabled = true\r\n//        proxySettings.matchDomains = [\"\"]\r\n        proxySettings.matchDomains = [\"api.xinpinget.com\"]\r\n        networkSettings.proxySettings = proxySettings\r\n        \r\n        networkSettings.dnsSettings = NEDNSSettings(servers: [\"114.114.114.114\"])\r\n\r\n        let ipv4Settings = NEIPv4Settings(addresses: [\"192.169.89.1\"], subnetMasks: [\"255.255.255.0\"])\r\n        networkSettings.ipv4Settings = ipv4Settings\r\n\r\n        RawSocketFactory.TunnelProvider = self\r\n        \r\n        setTunnelNetworkSettings(networkSettings) { (error) in\r\n\r\n            if let error = error {\r\n                NSLog(\"++++++++++\" + error.localizedDescription)\r\n            }\r\n            \r\n            self.proxyServer = GCDHTTPProxyServer(address: nil, port: 9090)\r\n```\r\n\r\nWhen i set http proxy like above, then client can't access to website. But after i change to `self.proxyServer = GCDHTTPProxyServer(address: IPAddress(fromString: \"127.0.0.1\"), port: 9090)`, it works again."}}
{"actor":{"display_login":"ufo22940268"}}