Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | When using the "fossil ui" command with a remote repository, ensure that the global configuration database is opened prior to trying to acquire the "web-browser" and "ssh-command" settings. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
23b84b33cdb70a1ecbdee4dd33f72695 |
| User & Date: | drh 2021-07-05 20:18:49.668 |
Context
|
2021-07-05
| ||
| 20:40 | For the "fossil ui REMOTE" command, omit the -- in the ssh command that separates local ssh options from the remote command, as it does not appear to be needed, and does not work with plink. ... (check-in: d6b573f72d user: drh tags: trunk) | |
| 20:18 | When using the "fossil ui" command with a remote repository, ensure that the global configuration database is opened prior to trying to acquire the "web-browser" and "ssh-command" settings. ... (check-in: 23b84b33cd user: drh tags: trunk) | |
| 17:58 | Omit all of the submenu when a wiki page is shown using the /home URL. [forum:/forumpost/5010f8f2d35c8024|Forum post 5010f8f2d35c8024]. ... (check-in: da2f1522db user: drh tags: trunk) | |
Changes
Changes to src/main.c.
| ︙ | ︙ | |||
3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 |
iPort = mxPort = atoi(zPort);
}else{
iPort = db_get_int("http-port", 8080);
mxPort = iPort+100;
}
if( isUiCmd && !fNoBrowser ){
char *zBrowserArg;
zBrowser = fossil_web_browser();
if( zIpAddr==0 ){
zBrowserArg = mprintf("http://localhost:%%d/%s", zInitPage);
}else if( strchr(zIpAddr,':') ){
zBrowserArg = mprintf("http://[%s]:%%d/%s", zIpAddr, zInitPage);
}else{
zBrowserArg = mprintf("http://%s:%%d/%s", zIpAddr, zInitPage);
| > | 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 |
iPort = mxPort = atoi(zPort);
}else{
iPort = db_get_int("http-port", 8080);
mxPort = iPort+100;
}
if( isUiCmd && !fNoBrowser ){
char *zBrowserArg;
if( zRemote ) db_open_config(0,0);
zBrowser = fossil_web_browser();
if( zIpAddr==0 ){
zBrowserArg = mprintf("http://localhost:%%d/%s", zInitPage);
}else if( strchr(zIpAddr,':') ){
zBrowserArg = mprintf("http://[%s]:%%d/%s", zIpAddr, zInitPage);
}else{
zBrowserArg = mprintf("http://%s:%%d/%s", zIpAddr, zInitPage);
|
| ︙ | ︙ | |||
3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 |
** "fossil ui --nobrowser" on the remote system and to set up a
** tunnel from the local machine to the remote. */
FILE *sshIn;
Blob ssh;
char zLine[1000];
blob_init(&ssh, 0, 0);
transport_ssh_command(&ssh);
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&ssh,
" -t -L127.0.0.1:%d:127.0.0.1:%d -- %!$"
" %$ ui --nobrowser --localauth --port %d",
iPort, iPort, zRemote, zFossilCmd, iPort);
if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
| > | 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 |
** "fossil ui --nobrowser" on the remote system and to set up a
** tunnel from the local machine to the remote. */
FILE *sshIn;
Blob ssh;
char zLine[1000];
blob_init(&ssh, 0, 0);
transport_ssh_command(&ssh);
db_close_config();
if( zFossilCmd==0 ) zFossilCmd = "fossil";
blob_appendf(&ssh,
" -t -L127.0.0.1:%d:127.0.0.1:%d -- %!$"
" %$ ui --nobrowser --localauth --port %d",
iPort, iPort, zRemote, zFossilCmd, iPort);
if( zNotFound ) blob_appendf(&ssh, " --notfound %!$", zNotFound);
if( zFileGlob ) blob_appendf(&ssh, " --files-urlenc %T", zFileGlob);
|
| ︙ | ︙ |