{"action":"created","issue":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/957","repository_url":"https://api.github.com/repos/v2ray/v2ray-core","labels_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/957/labels{/name}","comments_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/957/comments","events_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/957/events","html_url":"https://github.com/v2ray/v2ray-core/issues/957","id":304616047,"number":957,"title":"mac系统使用v2ray v3.13 ws+ssl+header分流断流现象严重","user":{"login":"man2018","id":18020785,"avatar_url":"https://avatars3.githubusercontent.com/u/18020785?v=4","gravatar_id":"","url":"https://api.github.com/users/man2018","html_url":"https://github.com/man2018","followers_url":"https://api.github.com/users/man2018/followers","following_url":"https://api.github.com/users/man2018/following{/other_user}","gists_url":"https://api.github.com/users/man2018/gists{/gist_id}","starred_url":"https://api.github.com/users/man2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/man2018/subscriptions","organizations_url":"https://api.github.com/users/man2018/orgs","repos_url":"https://api.github.com/users/man2018/repos","events_url":"https://api.github.com/users/man2018/events{/privacy}","received_events_url":"https://api.github.com/users/man2018/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-13T03:33:34Z","updated_at":"2018-03-16T05:13:08Z","closed_at":null,"author_association":"NONE","body":"\r\n\r\n中文：\r\n提交 Issue 之前请先阅读 [Issue 指引](https://github.com/v2ray/v2ray-core/blob/master/.github/SUPPORT.md)，然后回答下面的问题，谢谢。\r\n除非特殊情况，请完整填写所有问题。不按模板发的 issue 将直接被关闭。\r\n\r\n1)  你正在使用哪个版本的 V2Ray？（如果服务器和客户端使用了不同版本，请注明）\r\n服务器端：v2ray v3.13\r\nmac端：v2ray-core-masos v3.13\r\n\r\n2)  你的使用场景是什么？比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。\r\n我主要是用来socks5代理使用mail客户端收发邮件，配合proxifier，也通过浏览器翻墙，看视频等日常行为\r\n\r\n3)  你看到的不正常的现象是什么？（请描述具体现象，比如访问超时，TLS 证书错误等）\r\nmac系统是osx 10.13.3 64位，目前我是前台网站+后台v2ray隐藏+ssl证书+header分流。现在是使用一段时间后会出现无法ping现象，此时也无法上网（有时候我是直接把mac电脑合盖休眠，过几个小时再打开也会出现此问题），我重启mac电脑一般就能解决问题。同样的vps里面也装了ss刚没有此问题。\r\n\r\n4)  你期待看到的正确表现是怎样的？\r\n希望24小时持续不间断\r\n\r\n5)  请附上你的配置（提交 Issue 前请隐藏服务器端IP地址）。\r\n    \r\n    服务器端配置:\r\n```javascript\r\n    // 在这里附上服务器端配置文件\r\n```{\r\n    \"log\": {\r\n        \"access\": \"/var/log/v2ray/access.log\",\r\n        \"error\": \"/var/log/v2ray/error.log\",\r\n        \"loglevel\": \"warning\"\r\n    },\r\n    \"inbound\": {\r\n\t\"listen\": \"127.0.0.1\",\r\n        \"port\": 419,\r\n        \"protocol\": \"vmess\",\r\n        \"settings\": {\r\n            \"udp\": true,\r\n            \"clients\": [\r\n                {\r\n                    \"id\": \"19e23d80-3a4d-4277-b37b-79d5d8456f95\",\r\n                    \"level\": 1,\r\n                    \"alterId\": 64\r\n                }\r\n            ]\r\n        },\r\n        \"streamSettings\": {\r\n            \"network\": \"ws\",\r\n            \"security\": \"auto\",\r\n            \"wsSettings\": {\r\n            \"connectionReuse\": true,\r\n            \"path\": \"/\",\r\n            \"headers\": {\r\n            \"Host\": \"www.dkldfdj.com\"\r\n            }\r\n            }\r\n            }\r\n    },\r\n    \"outbound\": {\r\n        \"protocol\": \"freedom\",\r\n        \"settings\": {}\r\n    },\r\n    \"outboundDetour\": [\r\n        {\r\n            \"protocol\": \"blackhole\",\r\n            \"settings\": {},\r\n            \"tag\": \"blocked\"\r\n        }\r\n    ],\r\n    \"routing\": {\r\n        \"strategy\": \"rules\",\r\n        \"settings\": {\r\n            \"rules\": [\r\n                {\r\n                    \"type\": \"field\",\r\n                    \"ip\": [\r\n                        \"0.0.0.0/8\",\r\n                        \"10.0.0.0/8\",\r\n                        \"100.64.0.0/10\",\r\n                        \"127.0.0.0/8\",\r\n                        \"169.254.0.0/16\",\r\n                        \"172.16.0.0/12\",\r\n                        \"192.0.0.0/24\",\r\n                        \"192.0.2.0/24\",\r\n                        \"192.168.0.0/16\",\r\n                        \"198.18.0.0/15\",\r\n                        \"198.51.100.0/24\",\r\n                        \"203.0.113.0/24\",\r\n                        \"::1/128\",\r\n                        \"fc00::/7\",\r\n                        \"fe80::/10\"\r\n                    ],\r\n                    \"outboundTag\": \"blocked\"\r\n                }\r\n            ]\r\n        }\r\n    }\r\n}\r\n\r\n\r\n    客户端配置:\r\n```javascript\r\n    // 在这里附上客户端配置\r\n```{\r\n  \"inbound\": {\r\n    \"port\": 1080,\r\n    \"listen\": \"0.0.0.0\",\r\n    \"protocol\": \"socks\",\r\n    \"settings\": {\r\n      \"auth\": \"noauth\",\r\n      \"udp\": true,\r\n      \"ip\": \"127.0.0.1\",\r\n      \"clients\": null\r\n    },\r\n    \"streamSettings\": null\r\n  },\r\n  \"outbound\": {\r\n    \"tag\": \"agentout\",\r\n    \"protocol\": \"vmess\",\r\n    \"settings\": {\r\n      \"vnext\": [\r\n        {\r\n          \"address\": \"www.xxxx.com\",\r\n          \"port\": 443,\r\n          \"users\": [\r\n            {\r\n              \"id\": \"19e23d80-3a4d-4277-b37b-xxxxxxxxxx\",\r\n              \"alterId\": 64,\r\n              \"security\": \"chacha20-poly1305\"\r\n            }\r\n          ]\r\n        }\r\n      ]\r\n    },\r\n    \"streamSettings\": {\r\n      \"network\": \"ws\",\r\n      \"security\": \"tls\",\r\n      \"tcpSettings\": null,\r\n      \"kcpSettings\": null,\r\n      \"wsSettings\": {\r\n        \"connectionReuse\": true,\r\n        \"path\": \"/\",\r\n        \"headers\": {\r\n          \"Host\": \"www.dkldfdj.com\"\r\n        }\r\n      }\r\n    },\r\n    \"mux\": {\r\n      \"enabled\": true\r\n    }\r\n  },\r\n  \"inboundDetour\": null,\r\n  \"outboundDetour\": [\r\n    {\r\n      \"protocol\": \"freedom\",\r\n      \"settings\": {\r\n        \"response\": null\r\n      },\r\n      \"tag\": \"direct\"\r\n    },\r\n    {\r\n      \"protocol\": \"blackhole\",\r\n      \"settings\": {\r\n        \"response\": {\r\n          \"type\": \"http\"\r\n        }\r\n      },\r\n      \"tag\": \"blockout\"\r\n    }\r\n  ],\r\n  \"dns\": {\r\n    \"servers\": [\r\n      \"8.8.8.8\",\r\n      \"8.8.4.4\",\r\n      \"localhost\"\r\n    ]\r\n  },\r\n  \"routing\": {\r\n    \"strategy\": \"rules\",\r\n    \"settings\": {\r\n      \"domainStrategy\": \"IPIfNonMatch\",\r\n      \"rules\": [\r\n        {\r\n          \"type\": \"field\",\r\n          \"port\": null,\r\n          \"outboundTag\": \"direct\",\r\n          \"ip\": [\r\n            \"0.0.0.0/8\",\r\n            \"10.0.0.0/8\",\r\n            \"100.64.0.0/10\",\r\n            \"127.0.0.0/8\",\r\n            \"169.254.0.0/16\",\r\n            \"172.16.0.0/12\",\r\n            \"192.0.0.0/24\",\r\n            \"192.0.2.0/24\",\r\n            \"192.168.0.0/16\",\r\n            \"198.18.0.0/15\",\r\n            \"198.51.100.0/24\",\r\n            \"203.0.113.0/24\",\r\n            \"::1/128\",\r\n            \"fc00::/7\",\r\n            \"fe80::/10\"\r\n          ],\r\n          \"domain\": null\r\n        },\r\n        {\r\n          \"type\": \"field\",\r\n          \"port\": null,\r\n          \"outboundTag\": \"direct\",\r\n          \"ip\": null,\r\n          \"domain\": [\r\n            \"geosite:cn\"\r\n          ]\r\n        },\r\n        {\r\n          \"type\": \"field\",\r\n          \"port\": null,\r\n          \"outboundTag\": \"direct\",\r\n          \"ip\": [\r\n            \"geoip:cn\"\r\n          ],\r\n          \"domain\": null\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n\r\n6)  请附上出错时软件输出的错误日志。在 Linux 中，日志通常在 `/var/log/v2ray/error.log` 文件中。\r\n\r\n    服务器端错误日志:\r\n```\r\n    // 在这里附上服务器端日志\r\n```2018/02/23 16:28:18 [Warning]: Core: V2Ray started\r\n2018/03/10 19:39:49 [Warning] Core: V2Ray v3.13 started\r\n2018/03/10 19:40:30 [Warning] Transport|Internet|WebSocket: failed to serve http for WebSocket > accept tcp 127.0.0.1:419: use of closed network connection\r\n2018/03/10 19:40:30 [Warning] Core: V2Ray v3.13 started\r\n\r\n    客户端错误日志:\r\n```客户端我没有设置日志\r\n    // 在这里附上客户端日志\r\n```\r\n\r\n7) 请附上访问日志。在 Linux 中，日志通常在 `/var/log/v2ray/access.log` 文件中。\r\n```\r\n    // 在这里附上服务器端日志\r\n```2018/03/13 10:27:25 127.0.0.1:43894 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:30:53 127.0.0.1:44034 accepted tcp:v1.mux.cool:9527 \r\n2018/03/13 10:30:57 127.0.0.1:44048 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:30:58 127.0.0.1:44042 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:30:58 127.0.0.1:44046 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:30:58 127.0.0.1:44040 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:30:58 127.0.0.1:44044 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:06 127.0.0.1:44116 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:06 127.0.0.1:44120 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:06 127.0.0.1:44112 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:06 127.0.0.1:44118 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:06 127.0.0.1:44114 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:32:15 127.0.0.1:44308 accepted tcp:v1.mux.cool:9527 \r\n2018/03/13 10:32:33 127.0.0.1:44426 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:34:29 127.0.0.1:44634 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:34:47 127.0.0.1:44672 rejected  Proxy|VMess|Encoding: failed to read request header > read tcp 127.0.0.1:419->127.0.0.1:44672: i/o timeout\r\n2018/03/13 10:35:36 127.0.0.1:44790 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:35:36 127.0.0.1:44792 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:35:37 127.0.0.1:44788 rejected  Proxy|VMess|Encoding: failed to read request header > websocket: close 1006 (abnormal closure): unexpected EOF\r\n2018/03/13 10:35:44 127.0.0.1:44814 rejected  Proxy|VMess|Encoding: failed to read request header > read tcp 127.0.0.1:419->127.0.0.1:44814: i/o timeout\r\n2018/03/13 10:35:44 127.0.0.1:44816 rejected  Proxy|VMess|Encoding: failed to read request header > read tcp 127.0.0.1:419->127.0.0.1:44816: i/o timeout\r\n2018/03/13 10:35:44 127.0.0.1:44818 rejected  Proxy|VMess|Encoding: failed to read request header > read tcp 127.0.0.1:419->127.0.0.1:44818: i/o timeout\r\n2018/03/13 10:35:44 127.0.0.1:44820 rejected  Proxy|VMess|Encoding: failed to read request header > read tcp 127.0.0.1:419->127.0.0.1:44820: i/o timeout\r\n2018/03/13 10:35:48 127.0.0.1:44848 accepted tcp:v1.mux.cool:0 \r\n2018/03/13 10:35:48 127.0.0.1:44846 accepted tcp:v1.mux.cool:0 \r\n\r\n8) 其它相关的配置文件（如 Nginx）和相关日志。\r\n2018/01/20 12:14:01 [notice] 3234#0: signal process started\r\n2018/01/20 12:15:37 [notice] 4345#0: signal process started\r\n2018/01/20 12:27:32 [emerg] 4783#0: \"client_max_body_size\" directive is duplicate in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:45\r\n2018/01/20 18:08:22 [notice] 7541#0: signal process started\r\n2018/01/20 18:14:49 [notice] 8245#0: signal process started\r\n2018/01/20 18:22:45 [notice] 9004#0: signal process started\r\n2018/01/20 18:26:56 [notice] 9705#0: signal process started\r\n2018/01/20 19:18:38 [notice] 10874#0: signal process started\r\n2018/01/20 20:07:03 [notice] 11274#0: signal process started\r\n2018/01/20 22:16:58 [emerg] 12485#0: \"client_max_body_size\" directive is duplicate in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:67\r\n2018/01/20 22:18:17 [notice] 12516#0: signal process started\r\n2018/01/20 22:18:27 [notice] 12524#0: signal process started\r\n2018/01/20 23:27:49 [notice] 15918#0: signal process started\r\n2018/01/20 23:43:33 [notice] 16613#0: signal process started\r\n2018/01/20 23:55:39 [notice] 16914#0: signal process started\r\n2018/01/21 08:50:23 [notice] 22509#0: signal process started\r\n2018/01/21 09:06:44 [notice] 22768#0: signal process started\r\n2018/01/21 10:52:17 [emerg] 23996#0: invalid port in upstream \"127.0.0.1:<10000>\" in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:8\r\n2018/01/21 10:56:19 [emerg] 24017#0: invalid port in upstream \"127.0.0.1:<10000>\" in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:8\r\n2018/01/21 11:07:47 [notice] 24164#0: signal process started\r\n2018/01/21 11:07:47 [error] 24164#0: invalid PID number \"\" in \"/usr/local/nginx/logs/nginx.pid\"\r\n2018/01/21 11:08:48 [notice] 24183#0: signal process started\r\n2018/01/21 11:08:48 [error] 24183#0: invalid PID number \"\" in \"/usr/local/nginx/logs/nginx.pid\"\r\n2018/01/21 11:10:19 [notice] 2447#0: signal process started\r\n2018/01/21 11:22:33 [emerg] 2690#0: \"server\" directive is not allowed here in /usr/local/nginx/conf/nginx.conf:62\r\n2018/01/21 11:31:02 [notice] 2814#0: signal process started\r\n2018/01/21 11:35:56 [notice] 2908#0: signal process started\r\n2018/01/21 11:39:33 [notice] 3058#0: signal process started\r\n2018/01/21 11:51:37 [notice] 3126#0: signal process started\r\n2018/01/21 11:56:49 [notice] 3172#0: signal process started\r\n2018/01/21 12:11:26 [emerg] 3263#0: \"client_max_body_size\" directive is duplicate in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:46\r\n2018/01/21 12:12:05 [notice] 3274#0: signal process started\r\n2018/01/21 12:44:02 [notice] 3525#0: signal process started\r\n2018/01/21 13:52:04 [notice] 4714#0: signal process started\r\n2018/01/21 13:56:06 [notice] 4743#0: signal process started\r\n2018/01/21 13:57:41 [notice] 4762#0: signal process started\r\n2018/01/21 14:00:50 [notice] 4784#0: signal process started\r\n2018/01/21 14:04:32 [notice] 4810#0: signal process started\r\n2018/01/21 14:22:24 [notice] 4914#0: signal process started\r\n2018/01/21 14:25:56 [notice] 4966#0: signal process started\r\n2018/01/21 14:27:07 [notice] 5012#0: signal process started\r\n2018/01/21 14:28:04 [emerg] 5080#0: invalid number of arguments in \"proxy_set_header\" directive in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:35\r\n2018/01/21 14:29:55 [emerg] 5119#0: invalid number of arguments in \"proxy_set_header\" directive in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:35\r\n2018/01/21 14:32:30 [emerg] 5154#0: invalid number of arguments in \"proxy_set_header\" directive in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:35\r\n2018/01/21 14:33:40 [emerg] 5164#0: invalid number of arguments in \"proxy_set_header\" directive in /usr/local/nginx/conf/vhost/www.xxxx.com.conf:35\r\n2018/01/21 14:41:49 [notice] 5283#0: signal process started\r\n2018/01/21 14:42:28 [notice] 5316#0: signal process started\r\n2018/01/21 14:48:05 [notice] 5377#0: signal process started\r\n2018/01/21 14:54:55 [notice] 5487#0: signal process started\r\n2018/01/21 23:27:01 [notice] 8708#0: signal process started\r\n2018/01/21 23:36:46 [notice] 8831#0: signal process started\r\n2018/01/21 23:39:26 [notice] 8899#0: signal process started\r\n2018/01/22 00:08:26 [notice] 9249#0: signal process started\r\n请预览一下你填的内容再提交。\r\n\r\n如果你已经填完上面的问卷，请把下面的英文部份删除，再提交 Issue。\r\nPlease remove the Chinese section above.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/v2ray/v2ray-core/issues/comments/373605605","html_url":"https://github.com/v2ray/v2ray-core/issues/957#issuecomment-373605605","issue_url":"https://api.github.com/repos/v2ray/v2ray-core/issues/957","id":373605605,"user":{"login":"kirbyzhu","id":10296293,"avatar_url":"https://avatars3.githubusercontent.com/u/10296293?v=4","gravatar_id":"","url":"https://api.github.com/users/kirbyzhu","html_url":"https://github.com/kirbyzhu","followers_url":"https://api.github.com/users/kirbyzhu/followers","following_url":"https://api.github.com/users/kirbyzhu/following{/other_user}","gists_url":"https://api.github.com/users/kirbyzhu/gists{/gist_id}","starred_url":"https://api.github.com/users/kirbyzhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirbyzhu/subscriptions","organizations_url":"https://api.github.com/users/kirbyzhu/orgs","repos_url":"https://api.github.com/users/kirbyzhu/repos","events_url":"https://api.github.com/users/kirbyzhu/events{/privacy}","received_events_url":"https://api.github.com/users/kirbyzhu/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T05:13:08Z","updated_at":"2018-03-16T05:13:08Z","author_association":"NONE","body":"@android0276 我是用 go.sh 文件安装的，请问服务器上如何回退版本啊？"}}
{"actor":{"display_login":"kirbyzhu"}}