aboutsummaryrefslogtreecommitdiff

Proxy

Proxy denying connections depending on the time.

Getting started

Create config.dhall:

[
  {
    times = [
      {
        days = "Monday-Sunday",
        from = "00:00",
        to = "23:59"
      }
    ],
    hosts = [
      "facebook.com"
    ]
  }
]

Then, run with:

nix-shell --run 'cargo-watch -x "run -- --config config.dhall"'