issue #20971 modified code to update port when text has changed from rec...

...ent option list