Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port check #26

Open
1 task
patrickbuec opened this issue Dec 5, 2024 · 1 comment
Open
1 task

Port check #26

patrickbuec opened this issue Dec 5, 2024 · 1 comment

Comments

@patrickbuec
Copy link

What happened?

The script takes the target address and the port as input and checks the connection using a ping. However, since ping is not allowed in our case, but the port is open.

Expected behavior

Please check the port in line 105. Suggest replacing

if (Test-Connection -Ping $hostTmp -BufferSize 16 -Count 1 -ea 0 -quiet) {

with

if (Test-NetConnection -ComputerName $hostTmp -Port $portTmp) {

Relevant log output

No response

Proxmox VE Version

8.2.7

Version (bug)

8.2.3

Version (working)

No response

On what operating system are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request
@franklupo
Copy link
Member

Good idea. I'll check it out.

Best regards

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

No branches or pull requests

2 participants