mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
24 lines
367 B
Go
24 lines
367 B
Go
// +build !linux
|
|
|
|
package process
|
|
|
|
import (
|
|
"ehang.io/nps/lib/enet"
|
|
)
|
|
|
|
type TransparentProcess struct {
|
|
DefaultProcess
|
|
}
|
|
|
|
func (tp *TransparentProcess) GetName() string {
|
|
return "transparent"
|
|
}
|
|
|
|
func (tp *TransparentProcess) GetZhName() string {
|
|
return "透明代理"
|
|
}
|
|
|
|
func (tp *TransparentProcess) ProcessConn(c enet.Conn) (bool, error) {
|
|
return false, nil
|
|
}
|