{"action":"created","issue":{"url":"https://api.github.com/repos/zfl9/tls-proxy/issues/3","repository_url":"https://api.github.com/repos/zfl9/tls-proxy","labels_url":"https://api.github.com/repos/zfl9/tls-proxy/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/zfl9/tls-proxy/issues/3/comments","events_url":"https://api.github.com/repos/zfl9/tls-proxy/issues/3/events","html_url":"https://github.com/zfl9/tls-proxy/issues/3","id":373283589,"node_id":"MDU6SXNzdWUzNzMyODM1ODk=","number":3,"title":"HTTP/1.1 404 Not Found","user":{"login":"myjsqmail","id":31646848,"node_id":"MDQ6VXNlcjMxNjQ2ODQ4","avatar_url":"https://avatars0.githubusercontent.com/u/31646848?v=4","gravatar_id":"","url":"https://api.github.com/users/myjsqmail","html_url":"https://github.com/myjsqmail","followers_url":"https://api.github.com/users/myjsqmail/followers","following_url":"https://api.github.com/users/myjsqmail/following{/other_user}","gists_url":"https://api.github.com/users/myjsqmail/gists{/gist_id}","starred_url":"https://api.github.com/users/myjsqmail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myjsqmail/subscriptions","organizations_url":"https://api.github.com/users/myjsqmail/orgs","repos_url":"https://api.github.com/users/myjsqmail/repos","events_url":"https://api.github.com/users/myjsqmail/events{/privacy}","received_events_url":"https://api.github.com/users/myjsqmail/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-24T02:56:29Z","updated_at":"2018-10-24T03:00:41Z","closed_at":null,"author_association":"NONE","body":"`[Unit]\r\nDescription=tls-client\r\nRequires=network.target network-online.target\r\nAfter=network.target network-online.target\r\n\r\n[Service]\r\nType=simple\r\nExecStart=/bin/sh -c \"/usr/local/bin/tls-client -j2 -s www.example.com -c /etc/ssl/cert.pem -P /tls-proxy -H $'Some-Header: some_header_value\\r\\n'\"\r\nRestart=always\r\n\r\n[Install]\r\nWantedBy=multi-user.target`\r\n\r\nzfl9您好，关于tls-client启动脚本中http header的设置，经过测试发现兼容问题。\r\n在archlinux系统中按照这个脚本启动，sh会自动把$符号去掉变成：\r\n`45914 ?        Ssl    0:00 /usr/local/bin/tls-client -j2 -s abc.com -c /etc/ssl/cert.pem -P /tls-proxy -H Some-Header: some_header_value? `\r\n而在ubuntu16.04系统中启动，就会变成这样：\r\n`23643 ?        Sl     0:00 /usr/local/bin/tls-client -j2 -s abc.com -c /etc/ssl/certs/ca-certificates.crt -P /tls-proxy -H $Some-Header: some_header_value? `\r\ntls-server端的nginx就会返回404，导致无法连接。\r\n另外在archlinux中去掉$符号也是可以连接的，感觉这个$没什么用处。\r\n\r\n所以建议您修改一下。"},"comment":{"url":"https://api.github.com/repos/zfl9/tls-proxy/issues/comments/432495144","html_url":"https://github.com/zfl9/tls-proxy/issues/3#issuecomment-432495144","issue_url":"https://api.github.com/repos/zfl9/tls-proxy/issues/3","id":432495144,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjQ5NTE0NA==","user":{"login":"zfl9","id":22726048,"node_id":"MDQ6VXNlcjIyNzI2MDQ4","avatar_url":"https://avatars1.githubusercontent.com/u/22726048?v=4","gravatar_id":"","url":"https://api.github.com/users/zfl9","html_url":"https://github.com/zfl9","followers_url":"https://api.github.com/users/zfl9/followers","following_url":"https://api.github.com/users/zfl9/following{/other_user}","gists_url":"https://api.github.com/users/zfl9/gists{/gist_id}","starred_url":"https://api.github.com/users/zfl9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfl9/subscriptions","organizations_url":"https://api.github.com/users/zfl9/orgs","repos_url":"https://api.github.com/users/zfl9/repos","events_url":"https://api.github.com/users/zfl9/events{/privacy}","received_events_url":"https://api.github.com/users/zfl9/received_events","type":"User","site_admin":false},"created_at":"2018-10-24T03:00:41Z","updated_at":"2018-10-24T03:00:41Z","author_association":"OWNER","body":"我也是 archlinux，但是没有出现过你所描述的问题，我尝试将 `$''` 去掉，会出现 bad response。"}}
{"actor":{"display_login":"zfl9"}}