main: add address validation and unix domain socket support

Can you just use an if statement here?

```
if l.proto != "unix" && l.proto != "tcp" {
    return nil, fmt.Errorf()
}
return net.Listen()
```