iocore: fix socket type selection