Skip to content

Add support for custom host #71

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();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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