(name string)
| 1328 | } |
| 1329 | |
| 1330 | func (n *errorTurnNet) InterfaceByName(name string) (*transport.Interface, error) { |
| 1331 | ifaces, err := n.Interfaces() |
| 1332 | if err != nil { |
| 1333 | return nil, err |
| 1334 | } |
| 1335 | for _, iface := range ifaces { |
| 1336 | if iface.Name == name { |
| 1337 | return iface, nil |
| 1338 | } |
| 1339 | } |
| 1340 | |
| 1341 | return nil, transport.ErrInterfaceNotFound |
| 1342 | } |
| 1343 | |
| 1344 | func (n *errorTurnNet) CreateDialer(*net.Dialer) transport.Dialer { return nil } |
| 1345 |
nothing calls this directly
no test coverage detected