main: add address validation and unix domain socket support

empty line by error?