Skip to content

Commit

Permalink
Update initialize_util.py
Browse files Browse the repository at this point in the history
IPV6 Only
  • Loading branch information
ranareehanaslam authored Dec 8, 2023
1 parent 132d8a4 commit 6c45e6b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions modules/initialize_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@
def gradio_server_name():
from modules.shared_cmd_options import cmd_opts

if cmd_opts.ipv6:
return "::"
elif cmd_opts.server_name:
if cmd_opts.server_name:
return cmd_opts.server_name
else:
return "0.0.0.0" if cmd_opts.listen else None

return "::" if cmd_opts.listen else None


def fix_torch_version():
Expand Down

0 comments on commit 6c45e6b

Please sign in to comment.