Ignore:
Timestamp:
07/20/11 13:36:04 (14 years ago)
Author:
lgiessmann
Message:

trunk: changed the configuration of the admin interface => is is possible to set the remote address of each admin handler

Location:
trunk/src/rest_interface
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/rest_interface/admin-interface.lisp

    r649 r650  
    3434(defun admin-shutdown()
    3535  (handler-case
    36       (if (string= *admin-remote-name* (hunchentoot:remote-addr*))
     36      (if (string= *shutdown-remote-address* (hunchentoot:remote-addr*))
    3737          (progn
    3838            (when elephant:*store-controller*
     
    5959(defun admin-local-backup()
    6060  (handler-case
    61       (if (string= *admin-remote-name* (hunchentoot:remote-addr*))
     61      (if (string= *local-backup-remote-address* (hunchentoot:remote-addr*))
    6262          (let ((destination-path
    6363                 (hunchentoot:url-decode (hunchentoot:get-parameter "path"))))
     
    7373(defun admin-remote-backup()
    7474  (handler-case
    75       (if (string= *admin-remote-name* (hunchentoot:remote-addr*))
     75      (if (string= *remote-backup-remote-address* (hunchentoot:remote-addr*))
    7676          (progn (hunchentoot:url-decode (hunchentoot:get-parameter "path"))
    7777                 (setf (hunchentoot:content-type*) "application/xml")
  • TabularUnified trunk/src/rest_interface/rest-interface.lisp

    r647 r650  
    4040           :*admin-host-name*
    4141           :*admin-port*
    42            :*admin-remote-name*
     42           :*remote-backup-remote-address*
     43           :*local-backup-remote-address*
     44           :*shutdown-remote-address*
    4345           :*json-get-prefix*
    4446           :*get-rdf-prefix*
     
    8486(defvar *admin-host-name* "127.0.0.1")
    8587(defvar *admin-port* 11008)
    86 (defvar *admin-remote-name* "127.0.0.1")
     88(defvar *remote-backup-remote-address* "127.0.0.1")
     89(defvar *local-backup-remote-address* "127.0.0.1")
     90(defvar *shutdown-remote-address* "127.0.0.1")
    8791
    8892
Note: See TracChangeset for help on using the changeset viewer.