SpoofDPI/net/tcp.go

22 lines
259 B
Go
Raw Normal View History

2022-05-13 09:49:05 +00:00
package net
import (
"net"
)
type TCPAddr struct {
Addr *net.TCPAddr
}
func TcpAddr(ip string, port int) (*TCPAddr) {
addr := &net.TCPAddr {
IP: net.ParseIP(ip),
Port: port,
}
return &TCPAddr{
Addr: addr,
}
}