core: main - set default send tcp sockets to tls if no tcp is available