ZeroNet
ZeroNet copied to clipboard
Detect if there is a IPv6 address (IP, CJDNS, Yggdrasil)
Then, set ZeroNet address to ::1:43110 instead of http://127.0.0.1:43110/
what would be the benefit of it?
If a mesh router redirects all IPv4 traffic to a start page, ZeroNet UI will also be redirected, so also its UI should support IPv6.
Reference: https://github.com/datproject/dat/issues/1111
If you want to bind it to the ipv6 ip you can do it by: --ui_ip "::1"
or if you start it with --ui_ip "*"
, then it should be available on all ip address of your machine
What about the shared links (0talk, zerome, etc), that are IPv4?
It would need a inner redirection
it should change the links automatically based on the host you are using to access the client.
@DaniellMesquita I've told others to follow this rule, but I'll repeat it here again, as this is now really important:
Never hardcode 127.0.0.1:43110. People might use other ports, proxies, IPv6, etc. If you want to link to ZeroTalk, use /Talk.ZeroNetwork.bit/
address (the first slash is required, the last one can be omitted but is a tradition).
it should change the links automatically based on the host you are using to access the client.
Does this apply in all cases? Or only when users write 127.0.0.1:43110? For example my navbar usually shows something like: http://domainname.bit/ or http://zero/domainnameoraddress. Will it autochange these links for people or do I have to keep editing it by hand?
It's based on the site, but eg. ZeroTalk will only transform the http://127.0.0.1:43110 format: https://github.com/HelloZeroNet/ZeroTalk/blob/master/js/utils/Text.coffee#L34
/home/styromaniac/ZeroNet-linux-dist-linux64/ZeroNet.sh --ui_ip "*"
The above didn't work. I tried both http://[::1]:43110/ and http://[200:dce3:f78d:eed3:4f03:9b65:b984:5150]:43110/
/home/styromaniac/ZeroNet-linux-dist-linux64/ZeroNet.sh --ui_ip "::1"
http://[::1]:43110/
Server error Err: gaierror: [Errno -2] Name or service not known in UiServer.py line 107 > UiRequest.py line 116 >
/_socketcommon.py line 163 > ...
http://[200:dce3:f78d:eed3:4f03:9b65:b984:5150]:43110/
Unable to connect
@styromaniac
I didn't equate hate speech to free speech, you pedantic little prick. via: https://github.com/Floflis/meta/issues/40#issuecomment-761097933
So, why you came to bump this very old issue from who you consider a "pedantic little prick"? I think there are other old issues you could take a look.
@styromaniac
I didn't equate hate speech to free speech, you pedantic little prick. via: Floflis/meta#40 (comment)
So, why you came to bump this very old issue from who you consider a "pedantic little prick"? I think there are other old issues you could take a look.
Because it's relevant to what I wanted out of ZeroNet...