1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-16 18:15:17 +00:00

Default tcp_ping port changed to 80

This commit is contained in:
Nikolas Garofil 2010-04-24 12:33:40 +02:00
parent a2ae025f56
commit 45d63c7fba
2 changed files with 2 additions and 2 deletions

View File

@ -3372,7 +3372,7 @@
</term> </term>
<listitem>Displays the number of microseconds it takes to <listitem>Displays the number of microseconds it takes to
get a reply on a ping to to tcp 'port' on 'host'. 'port' is optional get a reply on a ping to to tcp 'port' on 'host'. 'port' is optional
and has 54321 as default. This works on both open and closed and has 80 as default. This works on both open and closed
ports, just make sure that the port is not behind a firewall or you ports, just make sure that the port is not behind a firewall or you
will get 'down' as answer. It's best to test a closed port instead will get 'down' as answer. It's best to test a closed port instead
of an open port, you will get a quicker response. of an open port, you will get a quicker response.

View File

@ -66,7 +66,7 @@ void parse_read_tcpip_arg(struct text_object *obj, const char *arg, void *free_a
void parse_tcp_ping_arg(struct text_object *obj, const char *arg, void *free_at_crash) void parse_tcp_ping_arg(struct text_object *obj, const char *arg, void *free_at_crash)
{ {
#define DEFAULT_TCP_PING_PORT 54321 #define DEFAULT_TCP_PING_PORT 80
struct sockaddr_in *addr; struct sockaddr_in *addr;
char *hostname; char *hostname;
struct hostent* he; struct hostent* he;