mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 22:36:53 +00:00
22 lines
259 B
Go
22 lines
259 B
Go
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,
|
|
}
|
|
}
|