Fossil SCM

Fix the "fossil bisect ui" command so that it works even if the host machine is using IPv6 for loopback. [forum:/forumpost/a71dbc08d7|Forum post a71dbc08d7].

drh 2021-06-07 16:47 trunk
Commit 2d79135b764968b9befeb44d73f494556ddb2aaa99925c268cff6609b43e0d37
1 file changed +1 -4
+1 -4
--- src/timeline.c
+++ src/timeline.c
@@ -1916,14 +1916,11 @@
19161916
);
19171917
tmFlags |= TIMELINE_UNHIDE;
19181918
zType = "ci";
19191919
disableY = 1;
19201920
}
1921
- if( bisectLocal
1922
- && fossil_strcmp(g.zIpAddr,"127.0.0.1")==0
1923
- && db_open_local(0)
1924
- ){
1921
+ if( bisectLocal && cgi_is_loopback(g.zIpAddr) && db_open_local(0) ){
19251922
int iCurrent = db_lget_int("checkout",0);
19261923
char *zPerm = bisect_permalink();
19271924
bisect_create_bilog_table(iCurrent, 0, 1);
19281925
tmFlags |= TIMELINE_UNHIDE | TIMELINE_BISECT | TIMELINE_FILLGAPS;
19291926
zType = "ci";
19301927
--- src/timeline.c
+++ src/timeline.c
@@ -1916,14 +1916,11 @@
1916 );
1917 tmFlags |= TIMELINE_UNHIDE;
1918 zType = "ci";
1919 disableY = 1;
1920 }
1921 if( bisectLocal
1922 && fossil_strcmp(g.zIpAddr,"127.0.0.1")==0
1923 && db_open_local(0)
1924 ){
1925 int iCurrent = db_lget_int("checkout",0);
1926 char *zPerm = bisect_permalink();
1927 bisect_create_bilog_table(iCurrent, 0, 1);
1928 tmFlags |= TIMELINE_UNHIDE | TIMELINE_BISECT | TIMELINE_FILLGAPS;
1929 zType = "ci";
1930
--- src/timeline.c
+++ src/timeline.c
@@ -1916,14 +1916,11 @@
1916 );
1917 tmFlags |= TIMELINE_UNHIDE;
1918 zType = "ci";
1919 disableY = 1;
1920 }
1921 if( bisectLocal && cgi_is_loopback(g.zIpAddr) && db_open_local(0) ){
 
 
 
1922 int iCurrent = db_lget_int("checkout",0);
1923 char *zPerm = bisect_permalink();
1924 bisect_create_bilog_table(iCurrent, 0, 1);
1925 tmFlags |= TIMELINE_UNHIDE | TIMELINE_BISECT | TIMELINE_FILLGAPS;
1926 zType = "ci";
1927

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button