(endpoint *addressPort)
| 146 | } |
| 147 | |
| 148 | func (d VirtualTun) resolveToAddrPort(endpoint *addressPort) (*netip.AddrPort, error) { |
| 149 | addr, err := d.ResolveAddrWithContext(context.Background(), endpoint.address) |
| 150 | if err != nil { |
| 151 | return nil, err |
| 152 | } |
| 153 | |
| 154 | addrPort := netip.AddrPortFrom(*addr, endpoint.port) |
| 155 | return &addrPort, nil |
| 156 | } |
| 157 | |
| 158 | // SpawnRoutine spawns a socks5 server. |
| 159 | func (config *Socks5Config) SpawnRoutine(vt *VirtualTun) { |
no test coverage detected