main: add address validation and unix domain socket support

k. reasonable.