-
Notifications
You must be signed in to change notification settings - Fork 66
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
feature windows 32bit support #14
Comments
No, but I haven't tested the code on a 32-bit Windows machine. |
I have test 32-bit binary (build on ubuntu 18.04) on windows 10 64-bit and it works fine, I think it should work if remove the build constrain $ GOOS=windows GOARCH=386 go build -o go-netstat.exe main.go
$ file go-netstat.exe
go-netstat.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows and it works ❯ .\go-netstat.exe -lis
Not all processes could be identified, you would have to be root to see it all.
Proto Local Addr Foreign Addr State PID/Program name
tcp 0.0.0.0:135 0.0.0.0:0 LISTEN 1420/svchost.exe |
I tested on windows 11 (change the GOARCH from amd64 to 386), the compilation failed.
|
Is there any reason that only windows 64 bit is supported?
https://github.com/cakturk/go-netstat/blob/master/netstat/netstat_windows.go#L1
The text was updated successfully, but these errors were encountered: