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

Can not visist when use default interface option #405

Closed
startewho opened this issue Nov 11, 2020 · 1 comment · Fixed by #500
Closed

Can not visist when use default interface option #405

startewho opened this issue Nov 11, 2020 · 1 comment · Fixed by #500

Comments

@startewho
Copy link

I use a win10 pc, when I used the default option

miniserve

it shows

Serving path \?\D:\Tool\bin at http://[::]:8080, http://127.0.0.1:8080

my inner ip is 192.168.3.103 when I visit the web it can not show anything. When I use the set the interface

miniserve -i 192.168.3.103

it works.it seems the [::] can not work in my windows

@startewho
Copy link
Author

And when iIchange the code in mian.rs.remve the line 145

if interface == IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)) {
                // If the interface is 0.0.0.0, we'll change it to 127.0.0.1 so that clicking the link will
                // also work on Windows. Why can't Windows interpret 0.0.0.0?
                "127.0.0.1".to_string()
            } 

rebuild the project.it works .so it maybe a win10 problem ?

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 a pull request may close this issue.

1 participant