fix: network source setup would reset port when editing a source. fixes #15366