Adding default redirections

Users normally don't remember syntax, so we can't assume they will remember the URL for the device. The IP address should be sufficient. To solve this, we want to create a default resource that redirects to our default page if only the IP address is provided. This is easily done as follows:

this.httpServer.Register("/", (req, resp) => 
{ 
   throw new TemporaryRedirectException("/Index.md"); 
}); 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.211.66