Commit Graph
123 Commits
Author SHA1 Message Date
Wez Furlong 86ba590ead fixup some missing dyn 2019-09-21 13:36:15 -07:00
Wez Furlong 24f6d90ccf improve error reporting for mux-over-ssh 2019-08-06 18:55:55 -07:00
Wez Furlong 567f3c4c0b remove muxed prefix from mux client title bar 2019-08-06 08:33:01 -07:00
Wez Furlong df43d0e0e9 groundwork for re-connecting muxer over ssh
We can't enable this until we grow some smarts about when the disconnect
warrants a reconnection or not.
2019-08-05 13:41:23 -07:00
Wez Furlong 093a0bb541 refactor code that iterates over client domains
More DRY
2019-08-05 12:55:58 -07:00
Wez Furlong 0fed030dac add wezterm connect DOMAIN subcommand for connecting to muxer
This makes it a bit more convenient to control when and which
multiplexer(s) you want to connect to.

Now that each domain must have a name in the configuration file,
we can address them more conveniently from the command line.
2019-08-05 11:39:05 -07:00
Wez Furlong 5d6bc3882c require all domains to have names 2019-08-05 11:04:56 -07:00
Wez Furlong af69842fa0 fix parameter order :-/ 2019-08-05 10:49:48 -07:00
Wez Furlong b46dbe60ba use $USERNAME on windows when defaulting ssh user 2019-08-05 09:35:30 -07:00
Wez Furlong 1818cce7f0 factor out ssh connection code 2019-08-03 11:35:44 -07:00
Wez Furlong 3571cd926e cargo fmt fixup 2019-08-02 12:54:18 -07:00
Wez Furlong 5d6f1a5725 adjustments for upstream ssh2 crate changes 2019-08-01 10:26:39 -07:00
Wez Furlong 9d0209d9a5 windows: fix .ssh/known_hosts path 2019-07-30 10:52:10 -07:00
Wez Furlong dde589af49 fix an issue with pid files when running under wsl
They don't always work, so let's just not use them when under wsl.
Since we now know how to detect when we're running under wsl, we
can use that knowledge to bypass permission checking for the unix
domain sockets automatically too.
2019-07-30 09:45:00 -07:00
Wez Furlong a7722beb0a add support for unix mux via ssh
This adds an ssh domain config type that allows us to ssh to a remote
host and then proxy the unix domain mux protocol over the ssh session.
2019-07-28 16:15:44 -07:00
Wez Furlong 7e50c4db68 workaround conpty drop issue 2019-07-17 08:42:41 -07:00
Wez Furlong 48a12da096 capture logs on startup on win32, fixup spawning wsl from gui 2019-07-16 14:14:40 -07:00
Wez Furlong 34ae350d88 allow spawning a server inside wsl 2019-07-16 09:05:35 -07:00
Wez Furlong 8cc5f33600 fix unix domain mux on windows
WSAPoll really doesn't like it if you pass in POLLERR, so don't do that.
2019-07-16 00:29:34 -07:00
Wez Furlong df20277d85 clippy 2019-07-06 08:18:59 -07:00
Wez Furlong d67d4aab57 avoid marking a tab as dead when we might reconnect it 2019-06-29 16:31:13 -07:00
Wez Furlong 4fc6914602 reduce the amount of RefCell is in server/tab.rs 2019-06-29 16:31:13 -07:00
Wez Furlong 285136169e reconnect tls connections automatically 2019-06-26 15:04:53 -07:00
Wez Furlong 96c61fcd53 refactor client to prepare for reconnecting 2019-06-26 15:04:53 -07:00
Wez Furlong abfd98b7c6 advise the mux when a domain has detached; remove its tabs 2019-06-26 15:04:53 -07:00
Wez Furlong 5c6f44d47f ClientDomain: treat as detached if connection is closed
We detect this when the client thread falls out of its processing
loop.
2019-06-26 15:04:53 -07:00
Wez Furlong c9489d391b Allow deferred attach of domains
This adds some plumbing so that a domain can indicate whether it is
attached or not, but is not yet smart enough to detect a closed
connection and mark itself as detached.
2019-06-26 15:04:53 -07:00
Wez Furlong 4c6768fd2b fixup windows build 2019-06-22 13:40:41 -07:00
Wez Furlong be345853cd allow spawning the server automatically when connecting via unix domain 2019-06-22 13:22:28 -07:00
Wez Furlong 7751a85826 fix subtraction underflow 2019-06-22 13:14:08 -07:00
Wez Furlong 33f17eaf3f remove WEZTERM_SKIP_MUX_SOCK_PERMISSIONS_CHECK env var in favor of config value 2019-06-22 11:01:17 -07:00
Wez Furlong 83a72d505a clippy 2019-06-22 10:18:23 -07:00
Wez Furlong 6c8d296c44 respect the connect_automatically configuration
For unix and tls clients, if connect_automatically is set
and we're not running the server, then instantiate and connect
to those domains when we start the app.

As part of this I realized that we weren't mapping the remote
tab to the local tab for unilateral pushes, so add some stuff
to support that.
2019-06-22 10:13:02 -07:00
Wez Furlong 9054343e51 factor out tls client configuration
We can now also specify multiple tls clients
2019-06-22 09:08:31 -07:00
Wez Furlong 86251f1787 factor out tls server configuration
Can now specify multiple servers if desired.
2019-06-22 08:44:14 -07:00
Wez Furlong 712089a5de refactor unix domain configuration
It is now possible to specify multiple domains with varying
configuration.
2019-06-22 08:21:25 -07:00
Wez Furlong 2e84714c97 clippy 2019-06-22 07:06:41 -07:00
Wez Furlong cb4fa1ac21 get_dirty_lines now uses Cow<Line>
This avoids some extra allocations in the local tab case.
2019-06-22 06:57:35 -07:00
Wez Furlong dc3c5cbdd6 enable url highlighting over mux 2019-06-21 21:40:48 -07:00
Wez Furlong e12f413224 propagate url clicks back to client 2019-06-21 18:44:07 -07:00
Wez Furlong 1ee4c14474 add size to cli tab list output 2019-06-21 15:04:31 -07:00
Wez Furlong 9978c1234c restructure throttling around scanning and pushing changes 2019-06-21 08:44:10 -07:00
Wez Furlong cfeb7e4705 remove dead commented out code 2019-06-21 07:58:49 -07:00
Wez Furlong 4ddef39b52 ratelimit unilateral pushes 2019-06-21 07:56:09 -07:00
Wez Furlong 130a7263d4 avoid repeated emission of cursor updates when scrolled back 2019-06-20 21:39:47 -07:00
Wez Furlong 938eb5e1cf remove old coarse pdus 2019-06-20 21:38:08 -07:00
Wez Furlong 760f9f25de implement peer authentication on the server side
This is admittedly pretty environment-specific, but it matches
an environment that I use :-p
2019-06-20 18:46:31 -07:00
Wez Furlong 16e26797d4 make openssl the default on unix systems 2019-06-20 17:35:20 -07:00
Wez Furlong 4ad7ff3083 use openssl directly for the client when that feature is enabled
This removes some redundancy and overhead around setting up the
connection (the native_tls crate doesn't provide PEM functions,
despite every deployment I've ever seen only ever using PEM certs),
but more importantly, gives the control needed to make hostname
verification work in a PKI setup with unusual CN values.
2019-06-20 17:27:40 -07:00
Wez Furlong 4171ad3aa3 fix surface size for newly spawned tabs
Problem scenario was:

* spawn a window
* resize it larger
* spawn a new tab

When working with a mux client tab, the surface size in the new tab
didn't reflect the size of the remote surface, so the rendering was
messed up.

Arrange to know the size up front.
2019-06-20 08:46:58 -07:00