{"id":26323077,"url":"https://github.com/usamikinoko/oh-my-network","last_synced_at":"2025-06-15T09:32:50.134Z","repository":{"id":279957278,"uuid":"929879599","full_name":"usamikinoko/oh-my-network","owner":"usamikinoko","description":"网络诊断工具，检测你的网络连接状态并给出评估报告","archived":false,"fork":false,"pushed_at":"2025-02-09T19:00:36.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T18:32:01.587Z","etag":null,"topics":["golang","network","network-analysis"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usamikinoko.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-09T16:08:25.000Z","updated_at":"2025-02-10T03:03:04.000Z","dependencies_parsed_at":"2025-02-28T18:32:14.306Z","dependency_job_id":"bb04f458-f39b-43ae-9736-a148d58626bf","html_url":"https://github.com/usamikinoko/oh-my-network","commit_stats":null,"previous_names":["usamikinoko/oh-my-network"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usamikinoko%2Foh-my-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usamikinoko%2Foh-my-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usamikinoko%2Foh-my-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usamikinoko%2Foh-my-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usamikinoko","download_url":"https://codeload.github.com/usamikinoko/oh-my-network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243762249,"owners_count":20343979,"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":["golang","network","network-analysis"],"created_at":"2025-03-15T17:16:25.516Z","updated_at":"2025-03-15T17:16:26.672Z","avatar_url":"https://github.com/usamikinoko.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oh My Network\n\n[![Go Version](https://img.shields.io/badge/Go-1.23.5-blue.svg)](https://golang.org/doc/devel/release.html)\n[![License](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n\n网络诊断工具，检测你的网络连接状态并给出评估报告。\n\n\u003e 简单来说就是排查为什么你连了WIFI或者开了热点但访问不到互联网。\n\n## 使用示例\n\n1. 基本诊断\n```bash\ngo run main.go\n```\n\n2. 导出诊断报告\n```bash\ngo run main.go -o outputs\n```\n\n3. 使用代理服务器\n```bash\ngo run main.go -proxy http://127.0.0.1:7890\n```\n\n## 诊断报告示例\n\n```powershell\n网络诊断工具启动\n开始进行多层次网络诊断...\n\n[INFO] 开始网络诊断\n[INFO] 开始网络诊断\n[SUCCESS] 找到有效网络接口: vEthernet (WSL), IP: 172.25.224.1\n[SUCCESS] 基础网络检测完成 - 状态: 正常\n[SUCCESS] 网关检测完成 - 状态: 正常, 网关地址: 192.168.131.144\n[SUCCESS] DNS检测完成 - 状态: 正常\n[SUCCESS] TCP检测完成 - 状态: 正常\n[SUCCESS] 运营商检测完成 - 状态: 正常, 运营商: 中国移动, IP: 2409:891f:5c43:a094:e153:2e15:b5b6:118f, 组织: Shanghai Mobile Communications Co.,Ltd.\n[SUCCESS] 国际互联网检测完成 - 状态: 正常\n\n网络诊断报告\n==================================================\n检测时间: 2025-02-10 02:26:49\n\n总体状态\n------------------------------\n诊断结果: 正常\n最后成功层级: 国际互联网层\n\n基础网络信息\n------------------------------\n本地IP: 172.25.224.1\n网关地址: 192.168.131.144\nDNS服务器: 114.114.114.114, 8.8.8.8, 1.1.1.1\n运营商: 中国移动\n公网IP: 2409:891f:5c43:a094:8dd9:260e:489c:a9c5\n```\n\n## 诊断检测流程\n\n```mermaid\ngraph TD\n    A[开始诊断] --\u003e B[基础网络层检测]\n    B --\u003e |成功| C[网关层检测]\n    B --\u003e |失败| B1[报告网卡/IP问题]\n    C --\u003e |成功| D[DNS层检测]\n    C --\u003e |失败| C1[报告网关连接问题]\n    D --\u003e |成功| E[TCP层检测]\n    D --\u003e |失败| D1[报告DNS解析问题]\n    E --\u003e |成功| F[运营商检测]\n    E --\u003e |失败| E1[报告TCP连接问题]\n    F --\u003e |成功| G[国际互联网检测]\n    F --\u003e |失败| F1[报告运营商检测问题]\n    G --\u003e |成功| H1[生成完整诊断报告]\n    G --\u003e |失败| G1[报告国际网络访问问题]\n    B1 --\u003e Z[输出诊断结果]\n    C1 --\u003e Z\n    D1 --\u003e Z\n    E1 --\u003e Z\n    F1 --\u003e Z\n    G1 --\u003e Z\n    H1 --\u003e Z\n```\n\n## 输出说明\n\n1. 命令行输出\n    - 使用彩色文本展示检测进度和状态\n    - 实时显示各层检测结果\n    - 清晰标识成功/失败状态\n\n2. 诊断报告\n    - 保存在指定输出目录的时间戳子目录中\n    - 包含 network_diagnosis.txt（可读报告）\n    - 包含 raw_data.json（原始数据）","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusamikinoko%2Foh-my-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusamikinoko%2Foh-my-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusamikinoko%2Foh-my-network/lists"}