main: add address validation and unix domain socket support

this could not happen if we implement validateAddr correctly, right?
i do not know if we should log something here or panic?