{"id":13826281,"url":"https://github.com/inszva/tap0901","last_synced_at":"2026-02-01T18:33:45.397Z","repository":{"id":85454421,"uuid":"78636202","full_name":"InsZVA/tap0901","owner":"InsZVA","description":"Go语言虚拟网卡库，可用于制作对战平台、加速器、防火墙、VPN等","archived":false,"fork":false,"pushed_at":"2017-01-11T12:19:55.000Z","size":13,"stargazers_count":97,"open_issues_count":1,"forks_count":37,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-26T11:32:02.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InsZVA.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-11T12:17:43.000Z","updated_at":"2024-08-12T19:27:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"caacffbb-8918-4f83-85a0-78e0a1ad32ef","html_url":"https://github.com/InsZVA/tap0901","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/InsZVA%2Ftap0901","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InsZVA%2Ftap0901/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InsZVA%2Ftap0901/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InsZVA%2Ftap0901/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InsZVA","download_url":"https://codeload.github.com/InsZVA/tap0901/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476384,"owners_count":17480215,"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":[],"created_at":"2024-08-04T09:01:35.019Z","updated_at":"2026-02-01T18:33:45.380Z","avatar_url":"https://github.com/InsZVA.png","language":"Go","funding_links":[],"categories":["\u003ca id=\"d62a971d37c69db9f3b9187318c3921a\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"8ea8f890cf767c3801b5e7951fca3570\"\u003e\u003c/a\u003e公网访问局域网"],"readme":"# GO-Tap0901库\n\n## 说明\n\ntap0901是openVPN项目在windows下用于替代linux下TAP/TUN设备来实现虚拟网卡\n的设备。本项目致力于做一个开发者友好的TAP0901的Go库，方便制作网游加速器、虚拟\n局域网、防火墙、VPN、游戏对战平台等功能。\n\n## 依赖\n\n请先安装OpenVPN来获得Tap0901设备，产品环境下请单独编译tap-windows6驱动避免冲突。\n\n## 示例\n\n```go\n    // 打开TUN设备\n    tun, err := tap0901.OpenTun(net.IP([]byte{0,0,0,0}), net.IP([]byte{0,0,0,0}), net.IP([]byte{0,0,0,0}))\n    if err != nil {\n        panic(err)\n    }\n\n    // 设置DHCP\n    err = tun.SetDHCPMasq(net.IP([]byte{162, 169, 228, 206}), net.IP([]byte{255, 255, 255, 0}),\n        net.IP([]byte{0, 0, 0, 0}), net.IP([]byte{0, 0, 0, 0}))\n    if err != nil {\n        t.Error(err)\n    }\n\n    // 得到网络名称（以太网1之类）\n    szName := tun.GetNetworkName(false)\n\n    // 启动设备\n    tun.Connect()\n```\n\n其他示例参见/examples","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finszva%2Ftap0901","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finszva%2Ftap0901","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finszva%2Ftap0901/lists"}