Fossil

Diff
Login

Differences From Artifact [6790b7d6b8]:

To Artifact [93cb233cc9]:


585
586
587
588
589
590
591
592



593
594
595
596
597
598
599
**
** HTTP requests coming to this page from a loopback IP address cause
** a single \007 (bel) character to be written on the controlling TTY.
** This is used to implement an audiable alert by local web clients.
*/
void chat_ping_webpage(void){
  const char *zIpAddr = PD("REMOTE_ADDR","nil");
  if( cgi_is_loopback(zIpAddr) ) fputc(7, stderr);



}

/*
** COMMAND: chat
**
** Usage: %fossil chat ?URL?
**







|
>
>
>







585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
**
** HTTP requests coming to this page from a loopback IP address cause
** a single \007 (bel) character to be written on the controlling TTY.
** This is used to implement an audiable alert by local web clients.
*/
void chat_ping_webpage(void){
  const char *zIpAddr = PD("REMOTE_ADDR","nil");
  if( cgi_is_loopback(zIpAddr) ){
    cgi_append_header("Access-Control-Allow-Origin: *\r\n");
    fputc(7, stderr);
  }
}

/*
** COMMAND: chat
**
** Usage: %fossil chat ?URL?
**