summaryrefslogtreecommitdiff
path: root/t/t0007-git-var.sh
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2015-02-15 19:31:41 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-02-17 13:40:36 -0800
commitedef953e482ce212b7d68bbe0f59e34b5552db3e (patch)
tree11e2770b73e3059ae3519aea36cbc01b43096da4 /t/t0007-git-var.sh
parentMerge branch 'maint-2.0' into maint-2.1 (diff)
downloadtgif-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/t0007-git-var.sh')
0 files changed, 0 insertions, 0 deletions