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].
Commit
2d79135b764968b9befeb44d73f494556ddb2aaa99925c268cff6609b43e0d37
Parent
15081699987ae6a…
1 file changed
+1
-4
+1
-4
| --- src/timeline.c | ||
| +++ src/timeline.c | ||
| @@ -1916,14 +1916,11 @@ | ||
| 1916 | 1916 | ); |
| 1917 | 1917 | tmFlags |= TIMELINE_UNHIDE; |
| 1918 | 1918 | zType = "ci"; |
| 1919 | 1919 | disableY = 1; |
| 1920 | 1920 | } |
| 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) ){ | |
| 1925 | 1922 | int iCurrent = db_lget_int("checkout",0); |
| 1926 | 1923 | char *zPerm = bisect_permalink(); |
| 1927 | 1924 | bisect_create_bilog_table(iCurrent, 0, 1); |
| 1928 | 1925 | tmFlags |= TIMELINE_UNHIDE | TIMELINE_BISECT | TIMELINE_FILLGAPS; |
| 1929 | 1926 | zType = "ci"; |
| 1930 | 1927 |
| --- 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 |