Commit Graph

17 Commits

Author SHA1 Message Date
Tyler Compton 666f122a72 Pass client configuration as an argument
The ClientCommonConf, configuration file path, and server UDP port are
now passed around as arguments instead of being shared between
components as global variables. This allows for multiple clients to
exist in the same process, and allows client.Session to be used as a
library more easily.
2019-08-20 14:08:01 -07:00
Tyler Compton bc46e3330a Add an "assets_dir" option for frpc
This option allows users to specify where they want assets to be loaded
from, like the "assets_dir" option that already exists for frps. This
allows library users to use the admin panel without having to bundle
assets with statik.
2019-08-19 16:51:03 -07:00
Tyler Compton 00bd0a8af4 Load assets for dashboard/admin panel on demand
The client and server services now only attempt to load assets if the
dashboard or admin panel are enabled. This change makes it possible to
use FRP as a library without having to manage assets. If a library user
wants to start a server with the dashboard enabled, they will need to
set the DashboardPort and AssetsDir fields of ServerCommonConf.
2019-08-19 10:10:50 -07:00
fatedier 394af08561 close session in login() 2019-08-03 16:43:21 +08:00
fatedier 5680a88267 fix connection leak when login_fail_exit is false, fix #1335 2019-07-31 00:50:38 +08:00
fatedier d812488767 support tls connection 2019-03-11 14:14:31 +08:00
fatedier 96d7e2da6f add admin UI for frpc 2019-02-01 19:28:05 +08:00
fatedier 7c21906884 improve kcp shutdown 2018-12-11 15:17:36 +08:00
fatedier b33ea9274c client/control: refactor code 2018-11-06 18:35:05 +08:00
fatedier c33b5152e7 split visitors from proxies and add health check config 2018-06-25 18:22:35 +08:00
fatedier 0f6f674a64 cmd: support more cli command 2018-04-23 02:00:25 +08:00
fatedier 584e098e8e frpc: add status command 2018-01-17 01:09:33 +08:00
fatedier bd1e9a3010 update doc and fix vistor -> visitor 2017-12-05 01:34:33 +08:00
fatedier d246400a71 frpc: add admin server for reload configure file 2017-07-13 02:20:49 +08:00
fatedier aede4e54f8 close all proxies if protocol = kcp 2017-06-27 01:59:30 +08:00
fatedier 171bc8dd22 new proxy type: stcp(secret tcp) 2017-06-26 03:02:33 +08:00
fatedier 88083d21e8 start refactoring 2017-03-09 22:44:42 +08:00