mirror of https://github.com/v2ray/v2ray-core
18 lines
207 B
Go
18 lines
207 B
Go
|
package vemss
|
||
|
|
||
|
import (
|
||
|
"net"
|
||
|
)
|
||
|
|
||
|
type VMessHandler struct {
|
||
|
}
|
||
|
|
||
|
func (*VMessHandler) Listen(port uint8) error {
|
||
|
_, err := net.Listen("tcp", ":"+string(port))
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|