[PATCH 2/2] connection: Check for active flag when updating default gateway