- Added support for the Gorilla WebSocket library to improve WebSocket handling in Mihomo. - Refactored the WebSocket upgrade detection logic to utilize `websocket.IsWebSocketUpgrade`, enhancing reliability. - Updated the `NewMihomoForward` function to streamline request handling and improve path normalization. - Introduced new test cases for WebSocket tunnel scenarios, ensuring comprehensive coverage for traffic and memory endpoints. - Improved error handling and connection management for WebSocket upgrades, ensuring robust communication.
11 lines
208 B
AMPL
11 lines
208 B
AMPL
module github.com/telemt/telemt-api
|
|
|
|
go 1.22
|
|
|
|
require (
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/oschwald/geoip2-golang v1.11.0
|
|
github.com/prometheus/client_golang v1.20.5
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|