/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to server.py

  • Committer: Jelmer Vernooij
  • Author(s): David Coles
  • Date: 2010-03-22 10:59:23 UTC
  • mto: (0.254.17 index-based)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100322105923-30ekkwb1phni0q7x
Use host specified, not localhost

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
def serve_git(transport, host=None, port=None, inet=False):
164
164
    backend = BzrBackend(transport)
165
165
 
166
 
    server = TCPGitServer(backend, 'localhost')
 
166
    if host is None:
 
167
        host = ''
 
168
    if port:
 
169
        server = TCPGitServer(backend, host, port)
 
170
    else:
 
171
        server = TCPGitServer(backend, host)
167
172
    server.serve_forever()