Skip to content

v1.4.0

Compare
Choose a tag to compare
@yosebyte yosebyte released this 19 Jun 16:03
· 7 commits to main since this release
5368a0f

更新日志

  • 新增:隧道连接增加密钥认证机制,支持两种密钥获取方式:显式密钥(通过 URL 用户名部分指定,如 server://mypassword@host:port/target)和端口派生密钥(未指定用户名时使用端口号十六进制值作为密钥)。增强了连接安全性,防止未授权访问。
  • 新增:Master 模式现在支持 /info 端点,可以获取主控服务的详细信息,包括操作系统、架构、版本、日志级别、TLS 配置和证书路径等关键信息。API 认证保护该端点,需要有效的 API Key 才能访问。
  • 优化:改进了服务端-客户端握手流程,新增隧道密钥验证步骤。客户端连接后先发送 XOR 加密的密钥,服务端验证通过后才建立隧道连接。密钥不匹配的连接将被拒绝,提升了系统安全性。同时只在客户端侧保留了端内tcping延迟日志的输出。
  • 优化:减少服务重启冷却时间默认从 3 秒降至 1 秒(NP_SERVICE_COOLDOWN=1s),提高服务故障恢复速度。同时改进日志输出,增加隧道密钥信息显示,便于调试和监控。
  • 兼容:因隧道密钥认证机制的加入,服务端或客户端均不向下兼容,请同时升级两端。
  • 文档:中英文文档同步更新了上述内容,新增隧道密钥使用说明和握手流程描述。

Changelog

  • 5368a0f Merge pull request #36 from NodePassProject/main
  • 5a1e851 docs: update API endpoints in documentation for consistency; add tunnel key usage and handshake process
  • edbbc73 chore: update exit info display for improved clarity and usage instructions
  • 115250e feat: enhance server-client tunnel handshake with tunnel key handling and improved logging
  • 5db8aaa feat(master): enhance NewMaster with version and log level parameters; add /info endpoint for master details
  • 3613419 chore: update Discord link in README files
  • bba575b chore: update npsh description for clarity and flexibility in deployment