fix go test failed with http port

Signed-off-by: Wheelcomplex Yin <wheelcomplex@gmail.com>