beetlex-io / FastHttpApi

a lightweight and high-performance http/websocket service component in the dotnet core platform that supports TLS.
Apache License 2.0
650 stars 175 forks source link

如何禁止ServerController? #173

Open mirror222 opened 2 years ago

mirror222 commented 2 years ago

如以下日志? 可以禁止吗?

22:36:36 [Info ] [SYSTEM] register ServerController.ServerStatus to [GET/POST:/system/ServerStatus] 22:36:36 [Info ] [SYSTEM] register ServerController.SetSettings to [POST:/system/SetSettings] 22:36:36 [Info ] [SYSTEM] register ServerController.ChangeAccessKey to [GET/POST:/system/ChangeAccessKey] 22:36:36 [Info ] [SYSTEM] register ServerController.GetSettings to [GET/POST:/system/GetSettings] 22:36:36 [Info ] [SYSTEM] register ServerController.LogConnect to [GET/POST:/system/LogConnect] 22:36:36 [Info ] [SYSTEM] register ServerController.ListLog to [GET/POST:/system/ListLog] 22:36:36 [Info ] [SYSTEM] register ServerController.GetOptions to [GET/POST:/system/GetOptions] 22:36:36 [Info ] [SYSTEM] register ServerController.UploadModule to [POST:/system/UploadModule] 22:36:36 [Info ] [SYSTEM] register ServerController.SetActionMaxrps to [POST:/system/SetActionMaxrps] 22:36:36 [Info ] [SYSTEM] register ServerController.SetOptions to [POST:/system/SetOptions] 22:36:37 [Info ] [SYSTEM] detection sessions timeout with 600s 22:36:37 [Info ] [SYSTEM] listen @1234 success ssl:False 22:36:37 [Warring] [SYSTEM] no serverGC mode,please enable serverGC mode!

beetlex-io commented 2 years ago

Options.ManageApiEnabled=false

daguda commented 2 years ago

突然发现这个功能还是挺有用的。请问限制了本地访问还是公网也可以访问?