Commit Graph

1162 Commits (1c8bc0bfa8e3b99ae803e0aac43097896273024b)
 

Author SHA1 Message Date
Guy Lewin bf0993d2a6 Grammer fixes
fatedier 5dc8175fc8
Merge pull request from Hurricanezwf/fix-bad-xtcp-encryption
fix :  bad encryption and compression when use xtcp
zhouwenfeng dc6a5a29c1 fix bad encryption and compression when use xtcp
fatedier 94212ac8b8
Merge pull request from fatedier/new
let max_pool_count valid
fatedier e9e86fccf0 let max_pool_count valid
fatedier 58745992ef typo
fatedier 234d634bfe
Merge pull request from fatedier/new
proxy protocol: fix detect method for IPV4 and IPV6, fix 
fatedier fdc6902a90 proxy protocol: fix detect method for IPV4 and IPV6
fatedier d8d587fd93
Merge pull request from velovix/issue-1387_api-documentation
Add documentation for common configuration fields, common proxy configuration, and sessions
Tyler Compton 92791260a7 Add documentation for base proxy config
Tyler Compton 4dfd851c46 Add docs for common config fields & sessions
Now that the common configuration objects and session objects are part
of a public API, they need to be documented in a way that can be read
with godoc. This commit should lead to easier development with FRP as a
library.
fatedier bc4df74b5e
Merge pull request from velovix/issue-1387_client-conf-as-argument
Pass client configuration as an argument
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.
fatedier f999c8a87e
Merge pull request from velovix/issue-1387_server-conf-as-argument
Pass server configuration as an argument
fatedier 90a32ab75d
Merge pull request from renmu123/dev
fix one punctuation in Chinese docs
renmu123 0713fd28da
fix one punctuation in Chinese docs
fatedier f5b33e6de8
Merge pull request from velovix/issue-1387_client-assets-dir
Add an "assets_dir" option for frpc
fatedier fc6043bb4d
Merge pull request from velovix/issue-1387_load-assets-on-demand
Load assets for dashboard/admin panel on demand
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.
Tyler Compton 5fc7b3ceb5 Remove global ServerService variable
This variable didn't seem to be used anyway, so no further changes were
required.
Tyler Compton 6277af4790 Pass server configuration as an argument
The ServerCommonConf is now passed around as an argument instead of
being shared between components as a global variable. This allows for
more natural interaction with server.Session as a library and allows for
multiple servers to co-exist within the same process.

Related: 
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.
fatedier a415573e45
Merge pull request from fatedier/new
support disable_log_color for console mode
fatedier e68012858e ci: add http load balancing test cases
fatedier ca8a5b753c
Merge pull request from Hurricanezwf/feature/add-httpstohttp-header
add support for customized http header when using https2http plugin
zhouwenfeng d1f4ac0f2d add README for this feature
zhouwenfeng ff357882ac use Set() instead of Add() when attaching additional headers
zhouwenfeng 934ac2b836 add support for add http header when using https2http plugin
fatedier 1ad50d5982 bump version to v0.29.0
fatedier 388b016842 support disable_log_color for console mode
fatedier 50796643fb
Merge pull request from fatedier/new
fix health check bug, fix 
fatedier b1838b1d5e bump version to v0.28.2
fatedier 757b3613fe fix health check bug, fix
fatedier b657c0fe09
Merge pull request from fatedier/new
update vendor packages
fatedier 84df71047c no support for go1.11
fatedier abc6d720d0 vendor update github.com/gorilla/websocket
fatedier 80154639e3 fix
fatedier f2117d8331 bump version to v0.28.1
fatedier 261be6a7b7 add vendor files
fatedier b53a2c1ed9 update reverseproxy from std libraries
fatedier ee0df07a3c vendor update
fatedier 4e363eca2b update version of github.com/gorilla/mux
fatedier 4277405c0e update vendors
fatedier 6a99f0caf7 update testify and kcp-go
fatedier 394af08561 close session in login()
fatedier 30cb0a3ab0
Merge pull request from fatedier/new
support http load balancing
fatedier 5680a88267 fix connection leak when login_fail_exit is false, fix
fatedier 6b089858db bump version to v0.28.0
fatedier b3ed863021 support http load balancing
fatedier 5796c27ed5 doc: update