mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
agnhost/netexec: log hostname
Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
@@ -727,6 +727,7 @@ func startSCTPServer(sctpPort int) {
|
||||
|
||||
func getHostName() string {
|
||||
hostName, err := os.Hostname()
|
||||
log.Printf("hostname: %s", hostName)
|
||||
assertNoError(err, "failed to get hostname")
|
||||
return hostName
|
||||
}
|
||||
|
Reference in New Issue
Block a user