Skip to content

Livereload does not work when using --interface ::1 #2854

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

Open
WaffleLapkin opened this issue Apr 16, 2025 · 1 comment
Open

Livereload does not work when using --interface ::1 #2854

WaffleLapkin opened this issue Apr 16, 2025 · 1 comment

Comments

@WaffleLapkin
Copy link
Contributor

WaffleLapkin commented Apr 16, 2025

Bug Report

When using zola serve --interface ::1 livereload does not work.

Environment

Zola version: zola 0.20.0

I'm using NixOS, so this is linux, in case that matters for the IP stack.

Expected Behavior

Using --interface ::1 should not affect livereload.

Current Behavior

When making a change in the source, the page is not reloaded. Reloading the page by hand works correctly.

When loading the page (and it seems like periodically later) an error is printed to the console:

Firefox can’t establish a connection to the server at ws://undefined:1024/livereload. livereload.js:1:36894

Step to reproduce

  1. Go to a zola blog source
  2. Run zola serve --interface ::1
  3. Open http://[::1]:1111
  4. Open development console and observe the error (you might want to reload the page to see it quicker, if dev console hasn't captured it)
  5. Change some page's source
  6. Observe that the page isn't updated
@gnpaone
Copy link

gnpaone commented Apr 29, 2025

I've modified code and tested it, it's working fine now. #2869

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