James Tucker
acbc2e40b6
libtailscale: remove double-close on connections
...
If a client program receives the fd then it is responsible for closing
the fd, and we must not close the fd, as we may end up closing the wrong
object.
2023-03-07 14:54:57 -08:00
David Crawshaw
926893f68c
libtailscale: take a C.int, not a Go int
...
This was compiling because of the implicit integer conversion on the C
side. But -1 was becoming INT32MAX. Which was an invalid fd, so the logs
were hidden just as if the fd were -1. But it filled strace with EBADF.
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-07 12:36:29 -08:00
David Crawshaw
56cb66829f
libtailscale: call hostinfo.SetApp
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-07 09:36:31 -08:00
David Crawshaw
843d93cb63
libtailscale: update tailscale_loopback
...
This brings it inline with the tsnet change to support proxies.
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-06 11:58:20 -08:00
David Crawshaw
30ea07bf54
go.mod, go.sum: update tsnet
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-06 11:58:20 -08:00
Shayne Sweeney
2df6a30f8a
python: add initial support for Python
...
Signed-off-by: Shayne Sweeney <shayne@tailscale.com >
2023-03-05 14:49:12 -05:00
James Tucker
7bb5e96b97
ruby: add initial support for making local API requests
2023-03-03 16:57:51 -08:00
James Tucker
2b8dc03747
ruby: remove unnecessary artifacts from distribution
2023-03-03 16:57:51 -08:00
David Crawshaw
72c10539e2
libtailscale: add tailscale_loopback_api function
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-02 16:09:43 -08:00
David Crawshaw
998fdc4759
go.mod, go.sum: update tailscale.com/tsnet
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-02 16:09:43 -08:00
James Tucker
775ee41f1d
ruby: add a gem that wraps the library
2023-03-02 11:07:17 -08:00
David Crawshaw
0f378c01bd
.github: add CI tests
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-02 07:44:20 -08:00
James Tucker
13c8b27dd1
LICENSE: add common 3-clause license we use
2023-03-01 20:22:42 -08:00
James Tucker
1b54d72e9a
tailscale.h: remove non-implemented addr funcs
2023-03-01 17:39:55 -08:00
David Crawshaw
0dc2f30930
libtailscale: Tailscale C library
2023-03-01 08:21:28 -08:00
David Crawshaw
0b08c888b9
go.mod, go.sum: initialize
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-03-01 08:21:28 -08:00
David Crawshaw
5a373bd82b
.gitignore: add
2023-03-01 08:21:28 -08:00
David Crawshaw
ea6055573e
README.md: add build details
2023-03-01 08:21:28 -08:00
David Crawshaw
7eccb62105
README.md: initial commit
...
Signed-off-by: David Crawshaw <crawshaw@tailscale.com >
2023-02-20 17:00:17 -08:00