Browse Source

Merge pull request #2516 from openNAMU/dont_use

일부 버그 수정
잉여개발기 1 year ago
parent
commit
093a5ae2f3
3 changed files with 3 additions and 3 deletions
  1. 1 1
      app.py
  2. 1 1
      route/tool/func_tool.py
  3. 1 1
      version.json

+ 1 - 1
app.py

@@ -443,7 +443,7 @@ print('Now running... http://localhost:' + server_set['port'])
 @app.before_request
 def before_request_func():
     db_data = global_some_set_do('wiki_access_password')
-    if db_data:
+    if db_data and db_data != '':
         access_password = db_data
         input_password = flask.request.cookies.get('opennamu_wiki_access', ' ')
         if url_pas(access_password) != input_password:

+ 1 - 1
route/tool/func_tool.py

@@ -54,7 +54,7 @@ def ip_check(d_type = 0):
         ip = flask.session['id']
     else:
         set_data = global_func_some_set_do("load_ip_select")
-        if set_data == "default":
+        if not set_data or set_data == "default":
             ip = flask.request.environ.get('HTTP_X_REAL_IP',
                 flask.request.environ.get('HTTP_CF_CONNECTING_IP',
                     flask.request.environ.get('REMOTE_ADDR',

+ 1 - 1
version.json

@@ -1,5 +1,5 @@
 {
-    "r_ver" : "v3.6.0-v9",
+    "r_ver" : "v3.6.0-v10",
     "c_ver" : "20250323",
     "s_ver" : "20240426",
     "bin_link" : "https://github.com/openNAMU/GopenNAMU/releases/download/v2025-03-21-v2/"