network: fix connection type issue