Commit Graph

79 Commits

Author SHA1 Message Date
Iwasaki Yudai
8c9433ff21 Add timeout option 2017-01-09 12:04:15 +09:00
Robert Bittle
8fd09cd9ec
Add an option to disable client window resizes
This goes great with tmux when you are sharing your terminal for
presentations and you don't want to give viewers the ability to resize
your terminal
2016-12-30 09:20:09 -05:00
Iwasaki Yudai
ddbaa983c0 Merge pull request #102 from skeltoac/auth-token-content-type
Set content-type on auth_token.js
2016-08-13 17:48:42 -07:00
Yifa Zhang
be07d420dd add option for max connection (#112)
add option for max connection
2016-08-13 00:29:21 -07:00
Andy Skelton
ac49153071 Set content-type on auth_token.js 2016-06-24 19:47:14 +00:00
Iwasaki Yudai
510542b159 Release v0.0.13
* No functional changes
* Updated golang to 1.6.1
* Fixed `go get` broken binary
2016-04-13 16:18:21 +09:00
Iwasaki Yudai
b1c5226875 Release v0.0.12
* Bug fixes
* New option `--close-signal` to choose a signal sent to child processes
2015-10-18 12:08:11 +09:00
Iwasaki Yudai
888fe870dc Add configuration to modify signal sent to child process when close it 2015-10-14 07:26:47 +09:00
Iwasaki Yudai
95ad63e5ae Merge pull request #77 from moul/log-args
Log passed arguments
2015-10-13 12:56:38 -07:00
Manfred Touron
d56157f1ee
Using already-existing log command to print passed arguments 2015-10-13 19:04:45 +02:00
Manfred Touron
788c9942ad
Log passed arguments
i.e:

    2015/10/12 18:14:11 127.0.0.1:56983 200 GET /auth_token.js
    2015/10/12 18:14:11 New client connected: 127.0.0.1:56984
    2015/10/12 18:14:11 127.0.0.1:56984 passed arguments are: "--server_id XXXXXXXXXXXXXXX --type serial --auth_token YYYYYYYYYYYYYYYY"
    2015/10/12 18:14:11 Command is running for client 127.0.0.1:56984 with PID 95770
    2015/10/12 18:14:11 127.0.0.1:56984 101 GET /ws
    2015/10/12 18:14:11 Command exited for: 127.0.0.1:56984
2015-10-12 18:20:48 +02:00
Quentin Perez
04deb4902f Remove a mutex unlock 2015-10-12 10:28:36 +02:00
Iwasaki Yudai
589ec6b50a Handle hterm preferences with better care 2015-10-12 10:57:21 +09:00
Iwasaki Yudai
f72b18052a Simplify title format output procedure 2015-10-08 14:45:10 +09:00
Iwasaki Yudai
46e33887c4 Ensure only one client can connect when --once is given
Using a mutex
2015-10-08 14:32:49 +09:00
Iwasaki Yudai
e1de07bce2 Release v0.0.11
* Bug fixes
* SSL/TLS client certificate authentication support by @freakhill and @uovobw
* New option `--permit-argument` to allow client to provide command line arguments by @QuentinPerez
2015-10-07 13:05:05 +09:00
Iwasaki Yudai
9e392334a7 Update resource file 2015-10-07 13:03:53 +09:00
Quentin Perez
a4e77b2b76 Added handling of —permit-arguments option 2015-10-05 09:50:48 +02:00
Iwasaki Yudai
7715f93517 Merge pull request #69 from uovobw:add-tls-client-certificate-authentication 2015-10-05 16:30:06 +09:00
Iwasaki Yudai
57923e98c4 Merge pull request #67 from freakhill/master
support for client certificate
2015-10-04 20:43:55 -07:00
Manfred Touron
f75cc9771a
Add 'Server' HTTP header with current GoTTY version
$ curl -I http://gotty.server/
    HTTP/1.1 200 OK
    Accept-Ranges: bytes
    Content-Length: 407
    Content-Type: text/html; charset=utf-8
    Last-Modified: Fri, 02 Oct 2015 08:04:28 GMT
    Server: GoTTY/0.0.10
    Date: Fri, 02 Oct 2015 08:04:28 GMT
2015-10-02 10:14:01 +02:00
Iwasaki Yudai
096f77c780 Merge pull request #68 from QuentinPerez/mutex
Added mutex to avoid concurrent writes
2015-09-30 12:32:50 -07:00
Andrea Lusuardi - uovobw
7321b43f67 Add client certificate fields to the configuration struct
Add relevant logic
2015-09-30 19:06:55 +02:00
Quentin Perez
6500449916 Added mutex to avoid concurrent writes 2015-09-30 16:59:38 +02:00
Johan Gall
7e11f664d9 support for client certificate
run go fmt
2015-09-29 00:42:34 +09:00
Iwasaki Yudai
c88cf7a52d Show RemoteAddr and HTTP status code in log 2015-09-20 13:41:24 +09:00
Iwasaki Yudai
4f75000256 Send data in base64 format
Raw data sometimes include invalid UTF-8 bytes and that brings errors to
WebSocket clients. To avoid the errors, encode data into base64 before
sending it.
2015-09-02 20:16:35 -07:00
Iwasaki Yudai
83923b6f39 Check config file syntax 2015-09-01 20:42:52 -07:00
Iwasaki Yudai
05d9267f20 Show message for force exit 2015-09-01 15:11:05 +09:00
Iwasaki Yudai
ff92777011 Use credential for auth_token 2015-09-01 15:11:02 +09:00
Iwasaki Yudai
00ddf781de Send ping/pong 2015-08-31 21:34:54 -07:00
Iwasaki Yudai
0e81c484a9 Authenticate WS connection using token
Safari doesn't support basic authentication for websocket sessions.
This commit introduces a token-based authentication only for websocket
connection.
The token is shared by all clients and that might be not secure. However,
basic authentication itself is insecure and the credential is already
shared by clients, so don't mind.
2015-08-31 15:54:34 +09:00
Iwasaki Yudai
e7e607b3d7 Fix TLS crt/key file loading 2015-08-31 07:16:34 +09:00
Iwasaki Yudai
ee77ec1b3a Add favicon 2015-08-30 16:44:18 +09:00
Iwasaki Yudai
678258ecf1 Log received hterm preferences in console 2015-08-30 06:51:05 +09:00
Iwasaki Yudai
d3e48aa3ae Merge profile and config files and support custom index file 2015-08-29 13:23:00 +09:00
Iwasaki Yudai
25a5bc0b89 Fix default config file loading 2015-08-28 21:11:46 -07:00
Iwasaki Yudai
02e0b6fafd Use WriteMessage to simplify 2015-08-28 17:49:25 +09:00
Iwasaki Yudai
c71cc21721 Send SIGHUP to process after closing PTY
POSIX doesn't grantee that a blocked Read() operation will be released
after closing the file. Moreover, the pty file left intact even after
closing the file and the process keeps running in this case.
2015-08-28 17:22:42 +09:00
Iwasaki Yudai
4b67e3059d Support config file 2015-08-27 17:59:49 +09:00
Iwasaki Yudai
f60fd58f9b Replace "cert" to "crt" 2015-08-25 21:14:15 -07:00
Iwasaki Yudai
783e3fd925 Don't translate input
When `send-encoding` is `utf-8`, hterm translate input from the
clipboard from UTF-16 to UTF-8, even when the input is indeed UTF-8.
This translation messes up all non ASCII input.
2015-08-25 11:23:38 +09:00
Iwasaki Yudai
d4475579ff Close listener after calling StartRoutine()
This change prevents the listener from closing itself before
establishing the websocket session with the client.
2015-08-24 12:15:24 -07:00
Iwasaki Yudai
470621f39e Add --once option that accepts only one client and exit 2015-08-24 19:35:49 +09:00
Iwasaki Yudai
e613b29cc3 Shutdown server gracefully with Ctrl-C 2015-08-24 19:22:25 +09:00
Iwasaki Yudai
7b6911d7dd Support TLS/SSL encryption 2015-08-24 16:43:03 +09:00
Iwasaki Yudai
c56e41b56b Extract function for loading profile files 2015-08-24 16:13:22 +09:00
Iwasaki Yudai
acacba6f03 Support auto reconnection
A new option `--auto-reconnect` which takes seconds to reconnect is
added.
2015-08-24 07:14:24 +09:00
Iwasaki Yudai
4df9ac8059 Use url.URL for constructing URLs 2015-08-24 05:34:56 +09:00
Iwasaki Yudai
ca14394ec8 Use net.JoinHostPort for better IPv6 handling 2015-08-24 05:22:47 +09:00