{"id":15447304,"url":"https://github.com/jungzhang/httpwarp","last_synced_at":"2025-10-30T09:48:37.978Z","repository":{"id":57573568,"uuid":"190196810","full_name":"Jungzhang/HttpWarp","owner":"Jungzhang","description":"使用websocket将TCP包装http协议，用于进行cdn加速及隐藏后端真实ip，达到某种不可名状的目的","archived":false,"fork":false,"pushed_at":"2019-06-11T15:54:45.000Z","size":33,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T04:11:25.611Z","etag":null,"topics":["http","shadowsocks","socks5","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jungzhang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-04T12:28:28.000Z","updated_at":"2024-06-21T03:54:19.000Z","dependencies_parsed_at":"2022-09-26T19:01:26.960Z","dependency_job_id":null,"html_url":"https://github.com/Jungzhang/HttpWarp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungzhang%2FHttpWarp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungzhang%2FHttpWarp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungzhang%2FHttpWarp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jungzhang%2FHttpWarp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jungzhang","download_url":"https://codeload.github.com/Jungzhang/HttpWarp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241604975,"owners_count":19989603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","shadowsocks","socks5","websocket"],"created_at":"2024-10-01T20:04:46.118Z","updated_at":"2025-10-30T09:48:32.933Z","avatar_url":"https://github.com/Jungzhang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HttpWarp\n\n一个简单的websocket代理，可对TCP应用进行代理，达到隐藏数据包特征和使用CDN进行加速的目的。\n\n## QuickStart\n\n### 环境要求\n\n```\ngolang 版本 \u003e= 1.9.1\n```\n\n### 相关概念\n\n定义如下概念，下文中名词请自行对号入座\n\n\u003e ws服务端 ：本服务对应的服务端\n\u003e \n\u003e TCP服务端：被代理的TCP服务的服务端\n\u003e \n\u003e ws客户端：本服务对应的客户端\n\u003e \n\u003e TCP客户端：被代理的TCP服务的客户端\n\n### 安装\n\n下载\n\n```\ngo get -u github.com/Jungzhang/HttpWarp\n```\n\n编译\n\n```\ncd $GOPATH/src/github.com/Jungzhang/HttpWarp\n编译Server端：go build -o server\n编译Client端：go build -o client\n```\n\u003e 注意：\n\u003e- 当部署ws服务端时可执行文件名称必须为`server`\n\u003e- 在windows环境下编译时记得在client/server后添加.exe，即：go build -o client.exe \n\n部署服务端\n\n```\n./server [-p 8080] [-u /images/upload]\n```\n\u003e 参数说明：\n\u003e \n\u003e- p：ws服务端监听端口。该选项可选, 默认为80端口\n\u003e- u：用于ws代理服务收发数据的url地址, ws服务端和ws客户端需保证该地址一致。该选项可选，默认为：/data/put\n\n启动客户端\n\n```\n./client -p 8001 -d github.com [-i 192.168.0.120] [-l 10087] [-u /images/upload]\n```\n\n\u003e 参数说明：\n\u003e \n\u003e- p：需要转发到的`TCP服务端`的服务端口，即ws服务端代理的后端TCP服务端口。该选项必选\n\u003e- d：ws服务端所在域名或ip地址。该选项必选\n\u003e- i：TCP服务端对应地址，默认为`127.0.0.1`\n\u003e- l（小写L）：ws客户端监听的本地代理端口，默认为`10086`\n\u003e- u：用于ws客户端和ws服务端之间传输数据的url地址，默认为`/data/put`。注意该地址必须和ws服务端地址保持一致。\n\nTCP客服端配置\n\n\u003e 将TCP客户端对应的TCP服务端地址修改为`127.0.0.1:本地监听端口(默认为10086)`\n\n或\n\n\u003e 在本地TCP客户端中配置http代理到：`127.0.0.1:本地监听端口(默认为10086)`\n\n### 具体案例\n\n- 使用HttpWarp\u0026CDN复活被墙ip：[待补充]() \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungzhang%2Fhttpwarp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjungzhang%2Fhttpwarp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjungzhang%2Fhttpwarp/lists"}