File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/org/b3log/symphony Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,13 @@ public static void main(final String[] args) throws Exception {
323323 ChatRoomBot .sendBotMsg ("#### 维护完毕:sparkles:\n 社区已结束维护,可以开始聊天啦 :smile:\n Rhythm 启动时间 " + ClockEmojiMapper .getClockEmojiCode (LocalTime .now ()) + " " + startupTime + "\n Rhythm 编译版本 :dart: " + staticResourceVersion );
324324 });
325325
326+ if (Latkes .getRuntimeMode () == Latkes .RuntimeMode .DEVELOPMENT ) {
327+ org .b3log .symphony .util .Firewall .setEnabled (false );
328+ org .b3log .symphony .processor .middleware .AnonymousViewCheckMidware .setEnabled (false );
329+ org .b3log .symphony .processor .middleware .AnonymousViewCheckMidware .setFirstVisitCaptchaEnabled (false );
330+ LOGGER .warn ("Development mode: CC firewall and verification shield are disabled." );
331+ }
332+
326333 System .out .println (">>> Quick boot mode requirements is ready!" );
327334
328335 final String unixDomainSocketPath = commandLine .getOptionValue ("unix_domain_socket_path" );
You can’t perform that action at this time.
0 commit comments