Skip to content

Conversation

@mondeja
Copy link

@mondeja mondeja commented Oct 24, 2025

This is a 🐛 bug fix.

Summary

Fix livereload when using IPv6 host.

Context

Currently, when using an IPv6 address in host, livereload does not work.

How to reproduce

  • jekyll new myblog
  • cd myblog
  • bundle install
  • Add host: "::1" and livereload: true to _config.yml
  • bundle exec jekyll serve
  • Go to http://[::1]:4000/
  • Inspect the <head> of the page.
  • The <script> tag added by livereload is malformed: <script src="http://[:35729/livereload.js?snipver=1&amp;port=35729"></script>
  • Change the index.markdown file.
  • Return to the brower
  • The content has not changed

@mondeja mondeja changed the title Fix IPv6 support for livereload Fix livereload using IPv6 host Oct 24, 2025
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 this pull request may close these issues.

1 participant