mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-27 11:01:28 +00:00
18 lines
526 B
Go
18 lines
526 B
Go
|
//go:build !with_ssm_api
|
||
|
|
||
|
package include
|
||
|
|
||
|
import (
|
||
|
"github.com/sagernet/sing-box/adapter"
|
||
|
"github.com/sagernet/sing-box/experimental"
|
||
|
"github.com/sagernet/sing-box/log"
|
||
|
"github.com/sagernet/sing-box/option"
|
||
|
E "github.com/sagernet/sing/common/exceptions"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
experimental.RegisterSSMServerConstructor(func(router adapter.Router, logger log.Logger, options option.SSMAPIOptions) (adapter.SSMServer, error) {
|
||
|
return nil, E.New(`SSM api is not included in this build, rebuild with -tags with_ssm_api`)
|
||
|
})
|
||
|
}
|