Michael Bridgen
0764d7aaaf
Don't splode in error type checks if given nil
...
These two testing utils assumed that they got an error, and checked
its type; however, the most likely failure case is that there's no
error (i.e., nil). In that case they would cause a NPE panic.
2014-12-01 14:13:41 +00:00
Matthias Radestock
56bfb09656
s/weaveIP/ip
2014-11-27 16:31:42 +00:00
Matthias Radestock
24702e3a7a
stop weavedns from complaining when a container has no docker ip
...
e.g. when it was started with --net=none
weavedns wasn't actually using the docker-assigned ip for anything, so
this change is a simple matter of eradicating it from the code.
2014-11-27 16:13:06 +00:00
Michael Bridgen
b3d19d6e9d
Wait for weaveDNS HTTP to be running before sending it names
...
This adds a no-op endpoint to the HTTP API at `/status`. The script
simply tries this until it succeeds or gets bored.
2014-11-26 14:18:26 +00:00
Bryan Boreham
5cc24fe55e
Rename 'server' to 'listener' to better match how it is used
2014-11-20 16:37:25 +00:00
Bryan Boreham
22c3ff9f60
Set 'Unsafe' flag to allow dns.Server to handle responses
2014-11-20 16:36:13 +00:00
Matthias Radestock
3cb6f1b3cc
handle AAAA queries for external IPs
...
Closes #188 .
2014-11-17 12:25:46 +00:00
Matthias Radestock
fda412a151
refactor: rename badly named function
...
makeAddressReply handles both A and AAAA records
2014-11-17 12:06:06 +00:00
Bryan Boreham
91b6719924
Fetch docker version, to check things are working
2014-11-05 16:57:59 +00:00
Bryan Boreham
5d8045f5ee
Factor out error check
2014-11-05 16:57:24 +00:00
Bryan Boreham
a0a5921148
Check for error return from AddEventListener
2014-11-05 12:44:39 +00:00
Michael Bridgen
27beebf5d5
Factor out the wait-for-interface code
2014-11-03 17:47:16 +00:00
Michael Bridgen
822ec90606
Rename weavedns package to nameserver, and fix up
2014-10-29 11:41:58 +00:00
Michael Bridgen
8469fea215
Move files around in preparation for melding into weave code
...
* library code will go in weave/nameserver/
* main.go for the server goes in weavedns/ with the containerising
2014-10-29 11:34:56 +00:00