mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-12-04 12:25:29 +00:00
20 lines
273 B
Go
20 lines
273 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"net"
|
|
)
|
|
|
|
type RawTCPDiagnosticListener struct{}
|
|
|
|
func (l RawTCPDiagnosticListener) Listen() {
|
|
ip, err := net.Listen("tcp", ":62374")
|
|
if err != nil {
|
|
log.Printf("Failed to bind to TCP port 62374: %s", err)
|
|
}
|
|
|
|
for {
|
|
TarRespond(ip)
|
|
}
|
|
}
|