Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Overbill1683
Stable Diffusion Webui
提交
ccd73fc1
S
Stable Diffusion Webui
项目概览
Overbill1683
/
Stable Diffusion Webui
10 个月 前同步成功
通知
1748
Star
81
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
S
Stable Diffusion Webui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
ccd73fc1
编写于
11月 19, 2022
作者:
A
AUTOMATIC1111
提交者:
GitHub
11月 19, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4717 from papuSpartan/security
Add --server-name to the list of arguments considered insecure
上级
32718834
3405acc6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
2 deletion
+5
-2
modules/shared.py
modules/shared.py
+1
-1
webui.py
webui.py
+4
-1
未找到文件。
modules/shared.py
浏览文件 @
ccd73fc1
...
...
@@ -107,7 +107,7 @@ restricted_opts = {
"outdir_save"
,
}
cmd_opts
.
disable_extension_access
=
(
cmd_opts
.
share
or
cmd_opts
.
listen
)
and
not
cmd_opts
.
enable_insecure_extension_access
cmd_opts
.
disable_extension_access
=
(
cmd_opts
.
share
or
cmd_opts
.
listen
or
cmd_opts
.
server_name
)
and
not
cmd_opts
.
enable_insecure_extension_access
devices
.
device
,
devices
.
device_interrogate
,
devices
.
device_gfpgan
,
devices
.
device_swinir
,
devices
.
device_esrgan
,
devices
.
device_scunet
,
devices
.
device_codeformer
=
\
(
devices
.
cpu
if
any
(
y
in
cmd_opts
.
use_cpu
for
y
in
[
x
,
'all'
])
else
devices
.
get_optimal_device
()
for
x
in
[
'sd'
,
'interrogate'
,
'gfpgan'
,
'swinir'
,
'esrgan'
,
'scunet'
,
'codeformer'
])
...
...
webui.py
浏览文件 @
ccd73fc1
...
...
@@ -33,7 +33,10 @@ from modules.shared import cmd_opts
import
modules.hypernetworks.hypernetwork
queue_lock
=
threading
.
Lock
()
server_name
=
"0.0.0.0"
if
cmd_opts
.
listen
else
cmd_opts
.
server_name
if
cmd_opts
.
server_name
:
server_name
=
cmd_opts
.
server_name
else
:
server_name
=
"0.0.0.0"
if
cmd_opts
.
listen
else
None
def
wrap_queued_call
(
func
):
def
f
(
*
args
,
**
kwargs
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录