Metadata-Version: 2.4
Name: tunnelgo-client
Version: 2.19.0
Summary: TunnelGo 内网穿透客户端 - 类似 ngrok 的内网穿透服务，支持 IPv6/IPv4 P2P 直连与服务器中转双模式
Author-email: TunnelGo <tunnelgo@aitun.cc>
License: MIT
Project-URL: Homepage, https://aitun.cc
Project-URL: Documentation, https://aitun.cc
Project-URL: Repository, https://github.com/ctz168/tunnelgo
Keywords: tunnel,ngrok,nat-traversal,p2p,reverse-proxy
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: Proxy Servers
Classifier: Topic :: System :: Networking
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# TunnelGo Client

类似 ngrok 的内网穿透服务（Go 版本），支持 IPv6/IPv4 P2P 直连与服务器中转双模式。

将本地服务暴露到公网，通过固定域名访问，无需公网 IP。

## 安装

```bash
pip install tunnelgo-client
```

## 使用方法

```bash
# 基本模式（HTTP 反向代理）
tunnelgo-client --key YOUR_TOKEN --port 8080

# 子域名模式（推荐）
tunnelgo-client -k YOUR_TOKEN -p 8080 --subdomain myapp

# 子域名 + TCP 转发（SSH、数据库等）
tunnelgo-client -k YOUR_TOKEN -p 8080 --subdomain myapp --tcp-ports 22,3306

# 连接工具 - SSH 到远程子域名
tunnelgo-connect myapp:22 --key AUTH_TOKEN
```

## 功能特性

- 子域名路由模式
- 子域名 TCP 转发（SNI 路由）
- HTTP 独立端口模式
- TCP 转发（SSH、数据库等）
- IPv6/IPv4 P2P 直连
- UPnP 端口映射
- 自动重连
- 连接认证

## 获取令牌

访问 https://aitun.cc 注册并获取您的隧道令牌。
