~ubuntu-branches/ubuntu/edgy/tor/edgy

« back to all changes in this revision

Viewing changes to src/or/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-10-05 00:49:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20051005004908-3a6o9p6xgrv87yuo
Tags: 0.1.0.15-1ubuntu1
Add lsb init functions (Closes Malone #2820)
Thanks to David Mandelberg for the patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Copyright 2001-2004 Roger Dingledine.
3
3
 * Copyright 2004-2005 Roger Dingledine, Nick Mathewson. */
4
4
/* See LICENSE for licensing information */
5
 
/* $Id: main.c,v 1.505.2.5 2005/07/15 19:31:39 nickm Exp $ */
6
 
const char main_c_id[] = "$Id: main.c,v 1.505.2.5 2005/07/15 19:31:39 nickm Exp $";
 
5
/* $Id: main.c,v 1.505.2.6 2005/08/22 23:00:48 arma Exp $ */
 
6
const char main_c_id[] = "$Id: main.c,v 1.505.2.6 2005/08/22 23:00:48 arma Exp $";
7
7
 
8
8
/**
9
9
 * \file main.c
818
818
        TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT) {
819
819
    /* every 20 minutes, check and complain if necessary */
820
820
    routerinfo_t *me = router_get_my_routerinfo();
821
 
    if (!check_whether_orport_reachable())
 
821
    if (me && !check_whether_orport_reachable())
822
822
      log(LOG_WARN,"Your server (%s:%d) has not managed to confirm that its ORPort is reachable. Please check your firewalls, ports, address, etc.",
823
 
          me ? me->address : options->Address, options->ORPort);
824
 
    if (!check_whether_dirport_reachable())
 
823
          me->address, me->or_port);
 
824
    if (me && !check_whether_dirport_reachable())
825
825
      log(LOG_WARN,"Your server (%s:%d) has not managed to confirm that its DirPort is reachable. Please check your firewalls, ports, address, etc.",
826
 
          me ? me->address : options->Address, options->DirPort);
 
826
          me->address, me->dir_port);
827
827
  }
828
828
 
829
829
  /* if more than 100s have elapsed, probably the clock jumped: doesn't count. */