Add NTP service

This commit is contained in:
世界
2023-02-21 14:53:00 +08:00
parent f26785c0ba
commit 611d6bbfc5
26 changed files with 186 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ type Shadowsocks struct {
}
func NewShadowsocks(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.ShadowsocksOutboundOptions) (*Shadowsocks, error) {
method, err := shadowimpl.FetchMethod(options.Method, options.Password)
method, err := shadowimpl.FetchMethod(options.Method, options.Password, router.TimeFunc())
if err != nil {
return nil, err
}