-
Notifications
You must be signed in to change notification settings - Fork 295
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
Can't expose device fd on windows #60
Comments
@chengxuncc Thanks for the issue. Could you explain what you are using the FD for on Windows? Ideally operations that require direct access to the FD (or Handle on Windows) would be included in this package. |
I just run this code on windows: package main
import (
"log"
"os"
"github.com/songgao/water"
)
func main() {
ifce, err := water.NewTUN("haha")
if err != nil {
log.Fatalf("creating TUN interface error: %v\n", err)
}
log.Printf("file fd: %d\n", ifce.ReadWriteCloser.(*os.File).Fd())
} Originally posted by @songgao in #7 (comment) I use the FD to configure dhcp IP and dns, which can also be implemented by netsh or some ways else, but winodws can show notifications that IP was allocated on device in the FD way. |
Interesting. I'll put up a PR to add a |
I can't expose fd on windows like #7 before.
The text was updated successfully, but these errors were encountered: