mirror of
https://github.com/Gouryella/drip.git
synced 2026-02-23 21:00:44 +00:00
- Implement client bandwidth limitation parameter --bandwidth, supporting 1M, 1MB, 1G and other formats - Added parseBandwidth function to parse bandwidth values and verify them - Added bandwidth limit option in HTTP, HTTPS, TCP commands - Pass bandwidth configuration to the server through protocol - Add relevant test cases to verify the bandwidth analysis function feat(server): implements server-side bandwidth limitation function - Add bandwidth limitation logic in connection processing, using token bucket algorithm - Implement an effective rate limiting strategy that minimizes the bandwidth of the client and server - Added QoS limiter and restricted connection wrapper - Integrated bandwidth throttling in HTTP and WebSocket proxies - Added global bandwidth limit and burst multiplier settings in server configuration docs: Updated documentation to describe bandwidth limiting functionality - Add 2025-02-14 version update instructions in README and README_CN - Add bandwidth limit function description and usage examples - Provide client and server configuration examples and parameter descriptions
2.4 KiB
2.4 KiB
Drip
你的隧道,你的域名,随处可用
自建隧道方案,让你的服务安全地暴露到公网。
Drip 是一条安静、自律的隧道。 你在自己的网络里点亮一盏小灯,它便把光带出去——经过你自己的基础设施,按你自己的方式。
为什么选择 Drip?
- 掌控数据 - 没有第三方服务器,流量只在你的客户端与服务器之间传输
- 没有限制 - 无限隧道、带宽和请求数
- 真的免费 - 用你自己的域名,没有付费档位或功能阉割
- 开源 - BSD 3-Clause 协议
最近更新
2025-02-14
- 带宽限速 (QoS) - 支持按隧道粒度进行带宽控制,使用令牌桶算法,服务端按
min(client, server)作为实际生效限速 - 传输协议控制 - 支持服务域名与隧道域名的独立配置
# Client: limit to 1MB/s
drip http 3000 --bandwidth 1M
# Server: global limit (config.yaml)
bandwidth: 10M
burst_multiplier: 2.5
2025-01-29
- Bearer Token 认证 - 新增 Bearer Token 认证支持,用于隧道访问控制
- 代码优化 - 将大型模块重构为更小、更专注的组件,提升可维护性
快速开始
安装
bash <(curl -sL https://driptunnel.app/install.sh)
基本使用
# 配置(仅首次需要)
drip config init
# 暴露本地 HTTP 服务
drip http 3000
# 使用自定义子域名
drip http 3000 -n myapp
# → https://myapp.your-domain.com
文档
完整文档请访问 Docs
协议
BSD 3-Clause License - 详见 LICENSE
