Skip to content

Commit

Permalink
[IR Compiler] make gremlin server listen to 0.0.0.0 instead of localh…
Browse files Browse the repository at this point in the history
…ost (#2141)
  • Loading branch information
shirly121 committed Oct 18, 2022
1 parent 759b7a5 commit 7d351a2
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -56,14 +56,14 @@ public IrGremlinServer() {
InputStream input =
getClass().getClassLoader().getResourceAsStream("conf/gremlin-server.yaml");
this.settings = Settings.read(input);
this.settings.host = "0.0.0.0";
this.graph = TinkerFactory.createModern();
this.g = this.graph.traversal(IrCustomizedTraversalSource.class);
}

public IrGremlinServer(int gremlinPort) {
this();
settings.host = "0.0.0.0";
settings.port = (gremlinPort >= 0) ? gremlinPort : settings.port;
this.settings.port = (gremlinPort >= 0) ? gremlinPort : settings.port;
}

public void start(
Expand Down

0 comments on commit 7d351a2

Please sign in to comment.