mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-16 03:32:39 +08:00
Mark deprecated features
This commit is contained in:
parent
8cb41b5fa6
commit
a1449ee40e
13
docs/deprecated.md
Normal file
13
docs/deprecated.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Deprecated Feature List
|
||||
|
||||
The following features will be marked deprecated in 1.5.0 and removed entirely in 1.6.0.
|
||||
|
||||
#### ShadowsocksR
|
||||
|
||||
ShadowsocksR support has never been enabled by default, since the most commonly used proxy sales panel in the
|
||||
illegal industry stopped using this protocol, it does not make sense to continue to maintain it.
|
||||
|
||||
#### Proxy Protocol
|
||||
|
||||
Proxy Protocol is added by Pull Request, has problems, is only used by the backend of HTTP multiplexers such as nginx,
|
||||
is intrusive, and is meaningless for proxy purposes.
|
|
@ -35,7 +35,7 @@ func (a *myInboundAdapter) ListenTCP() (net.Listener, error) {
|
|||
a.logger.Info("tcp server started at ", tcpListener.Addr())
|
||||
}
|
||||
if a.listenOptions.ProxyProtocol {
|
||||
a.logger.Debug("proxy protocol enabled")
|
||||
a.logger.Warn("Proxy Protocol is deprecated, see https://sing-box.sagernet.org/deprecated")
|
||||
tcpListener = &proxyproto.Listener{Listener: tcpListener, AcceptNoHeader: a.listenOptions.ProxyProtocolAcceptNoHeader}
|
||||
}
|
||||
a.tcpListener = tcpListener
|
||||
|
|
|
@ -30,9 +30,10 @@ theme:
|
|||
- navigation.sections
|
||||
- header.autohide
|
||||
nav:
|
||||
- Getting Started:
|
||||
- Home:
|
||||
- index.md
|
||||
- Features: features.md
|
||||
- Deprecated: deprecated.md
|
||||
- Support: support.md
|
||||
- Change Log: changelog.md
|
||||
- Installation:
|
||||
|
|
|
@ -37,6 +37,7 @@ type ShadowsocksR struct {
|
|||
}
|
||||
|
||||
func NewShadowsocksR(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.ShadowsocksROutboundOptions) (*ShadowsocksR, error) {
|
||||
logger.Warn("ShadowsocksR is deprecated, see https://sing-box.sagernet.org/deprecated")
|
||||
outboundDialer, err := dialer.New(router, options.DialerOptions)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user