mirror of
https://github.com/SunBK201/UA3F.git
synced 2025-12-16 08:44:29 +00:00
feat: add HandleClient method to Server interface
This commit is contained in:
parent
a96dbbf910
commit
04ba532654
@ -2,14 +2,17 @@ package server
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
|
||||
"github.com/sunbk201/ua3f/internal/config"
|
||||
"github.com/sunbk201/ua3f/internal/rewrite"
|
||||
"github.com/sunbk201/ua3f/internal/server/socks5"
|
||||
"github.com/sunbk201/ua3f/internal/server/tproxy"
|
||||
)
|
||||
|
||||
type Server interface {
|
||||
Start() error
|
||||
HandleClient(net.Conn)
|
||||
}
|
||||
|
||||
func NewServer(cfg *config.Config, rw *rewrite.Rewriter) (Server, error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user