deislabs / wagi

Write HTTP handlers in WebAssembly with a minimal amount of work
Apache License 2.0
890 stars 44 forks source link

Populate REMOTE_ADDR and REMOTE_HOST #1

Closed radu-matei closed 4 years ago

radu-matei commented 4 years ago

This commit updates the REMOTE_ADDR and REMOTE_HOST headers.

### Env Vars ###
SERVER_PORT = 80
...
REMOTE_HOST = 127.0.0.1
...
GATEWAY_INTERFACE = CGI/1.1
REMOTE_ADDR = 127.0.0.1
...
SERVER_NAME = localhost:3000