gdr / tuntox (public) (License: GPLv3) (since 2017-01-24) (hash sha1)
Tunnel TCP connections over the Tox protocol
List of commits:
Subject Hash Author Date (UTC)
Move generate_tox_bootstrap.py to python3 3cd3c88bde3029230f1d436486c57a587f177c13 Andrzej Godziuk 2020-08-14 10:29:41
WSL screenshot c9dd89e9a0311bd7128231aaabadf9cb8e65e597 GDR! 2020-04-22 11:51:44
Update FAQ.md efe6ded54115b2086dea3723c8fc56bb69fc12e0 GDR! 2020-04-22 11:51:13
Fix wrong return type of functions 3d2f21ac28057f19bf367b7732039102e846b16f GDR! 2020-04-21 18:00:37
Windows FAQ 537575ce348921b569d9e45542681278ed5d97be GDR! 2020-04-21 17:27:00
Docker readme e168cc7f097c964c9551de625db089a630893e3e GDR! 2020-04-21 15:46:16
Remove my own dead relay 900d3300badd23734d7298596ef288d0e83a6a9e GDR! 2020-01-03 12:41:12
Add sonar cloud file 439297a35cec942fd6db1534a649f4b9471bb842 GDR! 2019-12-12 18:55:23
Move friend-connection-lost to a separate state 121acd73ddba12659713f27abef7524b9a0c6a48 GDR! 2018-11-17 11:23:57
Retry on lost friend connection 03d83602d3a328d89b806e23c35644ec3908dc1f GDR! 2018-11-17 10:42:55
Print toxcore version in debug output 3adc626eb1646ee3456ca282e1855142f9f935e0 GDR! 2018-10-25 09:39:47
Version bump to 0.0.9, new bootstrap nodes 896775c6089baa24edee06e04f5b83c3bb3bef5d GDR! 2018-10-22 11:53:56
Recommend NoScriptâ„¢ for optimal viewing experience d2e2adc947ec929b831d6369421cd585b9e3d66b GDR! 2018-05-04 18:22:30
Fix typo in tokssh help 9f245199da5a9e82e76177832153053bc32852e9 GDR! 2018-04-10 09:50:13
Add config file to tokssh to map a memorable name to toxid b4444039e733acc3e20e5b85749d95dd9eae298b Fabio 2018-04-10 08:58:43
Put a shameful todo 64277a0a2f4cb8902c77f4d9867d18d980e51bc8 GDR! 2018-03-24 09:39:47
Friend connection status printed correctly 74a5c4adbfd0a0a4a1dda3aedc875bc04bcf3c34 GDR! 2018-03-24 09:19:12
Print DHT key in debug log 3b26f4eac390008113ca0d5c0978ed7da19dfa34 GDR! 2018-03-24 09:01:12
Log friend connection status changes f8f68e77d95bc81060c311cf2b92e883db3bfa79 GDR! 2018-03-24 08:58:12
Move FAQ link up 826ef1b9deea8d3f5f34ef523205571f8d9f5975 GDR! 2018-03-24 08:33:00
Commit 3cd3c88bde3029230f1d436486c57a587f177c13 - Move generate_tox_bootstrap.py to python3
Signed-off-by: Andrzej Godziuk <andrzej@godziuk.pl>
Author: Andrzej Godziuk
Author date (UTC): 2020-08-14 10:29
Committer name: Andrzej Godziuk
Committer date (UTC): 2020-08-14 10:29
Parent(s): b626f19f69846a0eac8941c7173237fc4037a221
Signer:
Signing key:
Signing status: N
Tree: a2dc0717c4fe64cf985235efd6effb0088332d75
File Lines added Lines deleted
Makefile 2 1
generate_tox_bootstrap.py 8 8
File Makefile changed (mode: 100644) (index 90f78be..aa9c71b)
... ... DSO_LDFLAGS=-g -pthread -lm -lrt
9 9 DSO_LDFLAGS += $(shell pkg-config --libs $(DEPS)) DSO_LDFLAGS += $(shell pkg-config --libs $(DEPS))
10 10 OBJECTS=$(SOURCES:.c=.o) OBJECTS=$(SOURCES:.c=.o)
11 11 INCLUDES = $(wildcard *.h) INCLUDES = $(wildcard *.h)
12 PYTHON = /usr/bin/env python3
12 13
13 14
14 15 # Targets # Targets
 
... ... gitversion.h: FORCE
20 21 FORCE: FORCE:
21 22
22 23 tox_bootstrap.h: tox_bootstrap.h:
23 python generate_tox_bootstrap.py
24 $(PYTHON) generate_tox_bootstrap.py
24 25
25 26 %.o: %.c $(INCLUDES) gitversion.h tox_bootstrap.h %.o: %.c $(INCLUDES) gitversion.h tox_bootstrap.h
26 27 @echo " CC $@" @echo " CC $@"
File generate_tox_bootstrap.py changed (mode: 100644) (index 0cde94a..3198cd4)
1 #!/usr/bin/python
2 # pip install jinja2 requests
1 #!/usr/bin/python3
2 # pip3 install jinja2 requests
3 3
4 4 import datetime import datetime
5 5 import jinja2 import jinja2
 
... ... def toxtoc(value):
52 52 Generate 1 line of C code - 16 bytes Generate 1 line of C code - 16 bytes
53 53 @param value a hex string of length 32 (32 hex chars) @param value a hex string of length 32 (32 hex chars)
54 54 """ """
55 if len(value) <> 32:
55 if len(value) != 32:
56 56 raise ValueError('%r is not a 32-char string') raise ValueError('%r is not a 32-char string')
57 57
58 58 rv = "" rv = ""
 
... ... if __name__ == "__main__":
86 86 for elem in data['nodes']: for elem in data['nodes']:
87 87 node = {} node = {}
88 88 if 'ipv4' not in elem or 'port' not in elem or 'public_key' not in elem: if 'ipv4' not in elem or 'port' not in elem or 'public_key' not in elem:
89 print "SKIPPING", elem
89 print("SKIPPING", elem)
90 90 continue continue
91 91
92 if len(elem['public_key']) <> 64:
93 print "Bad public key %s, skipping!" % elem['public_key']
92 if len(elem['public_key']) != 64:
93 print("Bad public key %s, skipping!" % elem['public_key'])
94 94 continue continue
95 95
96 96 node['port'] = int(elem['port']) node['port'] = int(elem['port'])
 
... ... if __name__ == "__main__":
102 102 except socket.error: except socket.error:
103 103 # IPv4 is not numeric, let's try resolving # IPv4 is not numeric, let's try resolving
104 104 try: try:
105 print "RESOLVING", elem['ipv4']
105 print("RESOLVING", elem['ipv4'])
106 106 node['ipv4'] = socket.gethostbyname(elem['ipv4']) node['ipv4'] = socket.gethostbyname(elem['ipv4'])
107 107 except socket.error: except socket.error:
108 print "Could not resolve ipv4: %s, skipping!" % elem['ipv4']
108 print("Could not resolve ipv4: %s, skipping!" % elem['ipv4'])
109 109 continue continue
110 110
111 111 if 'status_udp' in elem and elem['status_udp']: if 'status_udp' in elem and elem['status_udp']:
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/gdr/tuntox

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/gdr/tuntox

Clone this repository using git:
git clone git://git.rocketgit.com/user/gdr/tuntox

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main