diff options
author | René Scharfe <l.s.r@web.de> | 2015-02-15 19:31:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-02-17 13:40:36 -0800 |
commit | edef953e482ce212b7d68bbe0f59e34b5552db3e (patch) | |
tree | 11e2770b73e3059ae3519aea36cbc01b43096da4 /t/t1420-lost-found.sh | |
parent | Merge branch 'maint-2.0' into maint-2.1 (diff) | |
download | tgif-edef953e482ce212b7d68bbe0f59e34b5552db3e.tar.xz |
daemon: look up client-supplied hostname lazily
Look up canonical hostname and IP address using getaddrinfo(3) or
gethostbyname(3) only if --interpolated-path or --access-hook were
specified.
Do that by introducing getter functions for canon_hostname and
ip_address and using them for all read accesses. These wrappers call
the new helper lookup_hostname(), which sets the variables only at its
first call.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1420-lost-found.sh')
0 files changed, 0 insertions, 0 deletions