mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2025-05-14 22:13:02 +00:00
fix: make libretranslate with ipv6
This commit is contained in:
parent
74a7831962
commit
b25ed7aae4
4 changed files with 4 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
import requests
|
||||
|
||||
response = requests.post(
|
||||
url='http://0.0.0.0:5000/translate',
|
||||
url='http://[::1]:5000/translate',
|
||||
headers={'Content-Type': 'application/json'},
|
||||
json={
|
||||
'q': 'Hello World!',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue