Skip to content

Add support for custom host #71

@macmichael01

Description

@macmichael01

Currently, I can serve content on a custom port:

  let port = 1234;
  let server = gls.static(config.content, port);
  server.start();

It would be awesome if I could serve on a custom host too:

  let port = 1233;
  let host = '192.168.0.5';
  let server = gls.static(config.content, host, port);
  server.start();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions