Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
ccd73fc1
Commit
ccd73fc1
authored
Nov 19, 2022
by
AUTOMATIC1111
Committed by
GitHub
Nov 19, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4717 from papuSpartan/security
Add --server-name to the list of arguments considered insecure
parents
32718834
3405acc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
modules/shared.py
modules/shared.py
+1
-1
webui.py
webui.py
+4
-1
No files found.
modules/shared.py
View file @
ccd73fc1
...
@@ -107,7 +107,7 @@ restricted_opts = {
...
@@ -107,7 +107,7 @@ restricted_opts = {
"outdir_save"
,
"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
.
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'
])
(
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
View file @
ccd73fc1
...
@@ -33,7 +33,10 @@ from modules.shared import cmd_opts
...
@@ -33,7 +33,10 @@ from modules.shared import cmd_opts
import
modules.hypernetworks.hypernetwork
import
modules.hypernetworks.hypernetwork
queue_lock
=
threading
.
Lock
()
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
wrap_queued_call
(
func
):
def
f
(
*
args
,
**
kwargs
):
def
f
(
*
args
,
**
kwargs
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment