diff --git a/README.md b/README.md index d731a72..ac55b4a 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,10 @@ The console can then be accessed by opening the following URL in a web browser: ``` http://127.0.0.1:8000 ``` -If you want to access lovebird from another computer on the same network then -`127.0.0.1` should be replaced with the IP address of the computer which LÖVE -is running on. +If you want to access lovebird from another computer then `127.0.0.1` should be +replaced with the IP address of the computer which LÖVE is running on; the IP +address of the other computer should be added to the +[lovebird.whitelist](#lovebirdwhitelist) table. ## Additional Functionality @@ -34,7 +35,8 @@ The port which lovebird listens for connections on. By default this is `8000` A table of hosts which lovebird will accept connections from. Any connection made from a host which is not on the whitelist is logged and closed immediately. If `lovebird.whitelist` is set to nil then all connections are -accepted. The default is `{ "127.0.0.1", "192.168.*.*" }`. +accepted. The default is `{ "127.0.0.1" }`. To allow *all* computers on the +local network access to lovebird, `"192.168.*.*"` can be added to this table. ### lovebird.wrapprint Whether lovebird should wrap the `print()` function or not. If this is true @@ -64,4 +66,3 @@ true this function is automatically called when print() is called. ### lovebird.clear() Clears the contents of the console, returning it to an empty state. - diff --git a/lovebird.lua b/lovebird.lua index a703625..9734f0b 100644 --- a/lovebird.lua +++ b/lovebird.lua @@ -24,7 +24,7 @@ lovebird.timestamp = true lovebird.allowhtml = false lovebird.echoinput = true lovebird.port = 8000 -lovebird.whitelist = { "127.0.0.1", "192.168.*.*" } +lovebird.whitelist = { "127.0.0.1" } lovebird.maxlines = 200 lovebird.updateinterval = .5 @@ -51,7 +51,7 @@ end