network: Rework autoconnect logic
1 file changed