这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@edigaryev
Copy link
Collaborator

Resolves #5.

@edigaryev edigaryev requested a review from fkorotkov February 18, 2022 00:29
process.standardError = pipe
process.standardInput = FileHandle.nullDevice

try process.run()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a catch.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let vmMacAddress = MACAddress(fromString: vmConfig.macAddress.string)!

guard let ip = try ARPCache.ResolveMACAddress(macAddress: vmMacAddress) else {
print("no IP address found")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add something like "Is your VM running?"

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added in 3aa5e83.

@edigaryev edigaryev requested a review from fkorotkov February 22, 2022 19:59
@edigaryev edigaryev merged commit 7a67dea into main Feb 22, 2022
@edigaryev edigaryev deleted the ip-command branch February 22, 2022 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to get VM's IP address

3 participants