41 Commits

Author SHA1 Message Date
Jan-Erik Rediger
0af1608fbc fix test 2023-03-12 19:52:00 +01:00
Jan-Erik Rediger
a8d7d3ccfd CI: no matrix, only ubuntu 2023-03-12 19:48:00 +01:00
Jan-Erik Rediger
eee91e2d3b Install Go in CI 2023-03-12 19:46:56 +01:00
Jan-Erik Rediger
e20f8f6d9d Reformat, docs 2023-03-12 19:44:25 +01:00
Jan-Erik Rediger
37aa6b2017 Add CI 2023-03-12 19:44:25 +01:00
Jan-Erik Rediger
dea21fa9aa Renamed and readme docs 2023-03-12 19:36:42 +01:00
Jan-Erik Rediger
ad8d029ae8 Re-enable examples
They are in a subdir, so not auto discovered
2023-03-12 19:32:51 +01:00
Jan-Erik Rediger
20b9e72a7f Link directly to tsnet 2023-03-12 19:28:34 +01:00
Jan-Erik Rediger
1af7bb0803 Build enough for Tokio/hyper to make use of incoming connections 2023-03-12 18:29:58 +01:00
Jan-Erik Rediger
70d91e73ad make it packagable 2023-03-12 16:02:08 +01:00
Jan-Erik Rediger
15cc45b5c4 Regenerate bindings
bindgen tailscale.h -o rust/src/sys.rs
2023-03-12 15:49:38 +01:00
Jan-Erik Rediger
27fd1cef7d Docs 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
893e1449dc handle logging 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
b834ef1c43 Build it out 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
b7a68833fb rename to sys 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
baffbc3b2c Link core and security on macos 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
ffd1eb549b Example: loop while still reading 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
3783cf346a Specify output correctly 2023-03-12 15:47:34 +01:00
Jan-Erik Rediger
71d2996b3a minimal rust wrapper 2023-03-12 15:47:34 +01:00
David Crawshaw
9bf2df1ab1 libtailscale: EBADF on bad tailscale_listener_close fd
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2023-03-11 16:53:35 -08:00
David Crawshaw
ae40e7a7f7 go.mod, go.sum: update tsnet
Attempt to understand most recent CI failure:
https://github.com/tailscale/tailscale/issues/7488

Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
2023-03-07 19:54:59 -08:00
James Tucker
44ef74417c libtailscale: implement shutdown semantics for conns
On connections where it applies, signal to the peer connection that the
connection is shutting down/half closed, and only fully close once both
sides are complete.
2023-03-07 14:54:57 -08:00
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