| Age | Commit message (Collapse) | Author |
|
See https://kilabit.info/journal/2022/gpl/ for more information.
|
|
Previously, the options for HTTP server initialized internally, which
make it uneasy to changes the default rescached instance when running
in development mode.
This commit move the HTTP server initialization inside the Environment
init method. If its nil, the init will set the default HTTP server
options along with the Memfs.
|
|
Previously, we initialize the rescached Server by passing the
path to configuration file and initialize the environment inside the
server.
This commit changes it to pass the instance of Environment. The idea
is to allow creating and running rescached Server without creating
configuration file first.
|
|
This changes update the code based on refactoring on lib/dns package
on share module.
|
|
Changes affected by update,
* lib/http: changes on Endpoint.Call function signature
* lib/http: changes on CORS configuration
* lib/test: changes on the Assert function signature
|
|
When user open the rescached web interface, the front page will
render and refresh the list of non-local caches per 10 seconds.
|
|
|
|
This changes affect how the memfs.New and GoGenenerate called, does not
affect the user.
|
|
* Add function to search and remove non-local caches
* Refactoring no how to create and remove record from hosts file
|
|
* Trim dot "." suffix on RR.Name before creating new one
* Decrease the notification from default (5 seconds) to 3 seconds
* Use the phrase "zone file" instead of "master file"
* Update the SOA fields information to be less technical.
|
|
Previously, the fields to create new record is name, type, and value.
This commit move the type field to the top so when the type changes,
the fields below it also changes according to its type.
This is to simplify the field format for PTR record.
|
|
|
|
|
|
Add second parameter to method PopulateCachesByXxx for clearity.
|
|
|
|
Both type hold the same fields, so use one from dns library.
|
|
|
|
While at it,
* update code with latest dns library
* check for empty name servers when updating environment
|
|
|
|
Currently, it allow user to add or remove new resource record from the
master zone file.
|
|
While at it, return an error when doing update on hosts block.
|
|
|
|
Use the format "Year-month-day hour:minute:second TZ" for
last updated value.
|
|
The UI will update (insert or remove) the records on cache on the fly.
|
|
|