Fossil

View Ticket
Login

View Ticket

2023-01-17
17:12 Ticket [b0894abc94] fossil server -P address:port status still Open with 3 other changes ... (artifact: f6bb11c6be user: stephan)
2011-09-08
22:02 Closed ticket [2c7b1cd3a3]: Cannot bind to specific IP address when in server mode plus 2 other changes ... (artifact: b343ffe25c user: dmitry)
2010-07-25
10:43 Ticket [b0894abc94] fossil server -P address:port status still Open with 2 other changes ... (artifact: 36de104283 user: anonymous)
09:53 New ticket [b0894abc94]. ... (artifact: 931e72e912 user: anonymous)

Ticket Hash: b0894abc94c175bb7840bfcda8f155e2b358512c
Title: fossil server -P address:port
Status: Open Type: Feature_Request
Severity: Priority:
Subsystem: Resolution: Open
Last Modified: 2023-01-17 17:12:44
Version Found In:
Description:
I would like to restrict the fossil server to listen on a single ip address; usually localhost. It would be nice if I could use
fossil server -P 127.0.0.1:8080
or
fossil server -P '[::1]:8080'

anonymous added on 2010-07-25 10:43:31:
Here's a workaround using socat:

/usr/local/bin/socat \
    TCP-LISTEN:8080,bind=127.0.0.1,reuseaddr,fork \
    EXEC:'/usr/local/bin/fossil http /home/me/myproject.fossil'
User Comments:
stephan added on 2023-01-17 17:12:44:

Commenting to automatically move this ticket out of the "stale" list. The "ui" command binds only to 127.0.0.1, so we apparently have the code necessary for implementing this, other than the actual extended parsing of the -P value.