Skip to content

Commit

Permalink
~ | Merge pull request #1112 from lategege/main
Browse files Browse the repository at this point in the history
fix bug - Cannot assign requested address
  • Loading branch information
xtekky authored Oct 21, 2023
2 parents 2ac711e + 0e93d84 commit f125f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g4f/api/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

if __name__ == "__main__":
print(f'Starting server... [g4f v-{g4f.version}]')
g4f.api.Api(g4f).run('localhost:1337', 8)
g4f.api.Api(g4f).run('127.0.0.1:1337', 8)
2 changes: 1 addition & 1 deletion g4f/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def main():

args = parser.parse_args()
if args.mode == "api":
Api(g4f).run('localhost:1337', 8)
Api(g4f).run('127.0.0.1:1337', 8)
elif args.mode == "gui":
run_gui_args(args)
else:
Expand Down

0 comments on commit f125f71

Please sign in to comment.