Skip to content

Commit

Permalink
Use 127.0.0.1 instead localhost to fix start process slow in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed Jul 3, 2023
1 parent b2f0c56 commit a16b6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def render(self):
"output_file": self.preview_file,
"dark_mode": str(self.dark_mode).lower()
}
url = 'http://localhost:{}?{}'.format(self.server_port, urlencode(params))
url = 'http://127.0.0.1:{}?{}'.format(self.server_port, urlencode(params))
with urlopen(url) as f:
resp = f.read().decode("utf-8")
if resp == "ok":
Expand Down

0 comments on commit a16b6d0

Please sign in to comment.