mirror of
https://github.com/microsoft/ethr.git
synced 2024-09-20 06:46:14 +08:00
Add output of accepted IP version (#111)
This commit is contained in:
parent
58ae94e286
commit
cca979577e
11
server.go
11
server.go
|
@ -32,6 +32,7 @@ var gCert []byte
|
|||
func runServer(testParam EthrTestParam, serverParam ethrServerParam) {
|
||||
defer stopStatsTimer()
|
||||
initServer(serverParam.showUI)
|
||||
showAcceptedIPVersion()
|
||||
runTCPBandwidthServer()
|
||||
runTCPCpsServer()
|
||||
runTCPLatencyServer()
|
||||
|
@ -157,6 +158,16 @@ func serverWatchControlChannel(test *ethrTest, waitForChannelStop chan bool) {
|
|||
watchControlChannel(test, waitForChannelStop)
|
||||
}
|
||||
|
||||
func showAcceptedIPVersion() {
|
||||
var ipVerString = "ipv4, ipv6"
|
||||
if ipVer == ethrIPv4 {
|
||||
ipVerString = "ipv4"
|
||||
} else if ipVer == ethrIPv6 {
|
||||
ipVerString = "ipv6"
|
||||
}
|
||||
ui.printMsg("Accepting IP version: %s", ipVerString)
|
||||
}
|
||||
|
||||
func runTCPBandwidthServer() {
|
||||
l, err := net.Listen(tcp(ipVer), hostAddr+":"+tcpBandwidthPort)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue