mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-18 22:54:50 +08:00
Refactor: use core/adapter
This commit is contained in:
8
core/adapter/handler.go
Normal file
8
core/adapter/handler.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package adapter
|
||||
|
||||
// Handler is a TCP/UDP connection handler that implements
|
||||
// HandleTCPConn and HandleUDPConn methods.
|
||||
type Handler interface {
|
||||
HandleTCPConn(TCPConn)
|
||||
HandleUDPConn(UDPConn)
|
||||
}
|
Reference in New Issue
Block a user