mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-04 17:27:23 -05:00
18 lines
205 B
Go
18 lines
205 B
Go
package net
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type VMessHandler struct {
|
|
}
|
|
|
|
func (*VMessHandler) Listen(port uint8) error {
|
|
_, err := net.Listen("tcp", ":"+string(port))
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|