fix auto change problem with tcp

Signed-off-by: Grarak <williye97@gmail.com>